FloatValue

public class FloatValue implements Value

A Value containing a 64-bits signed float (i.e. a Java double).

Fields

Decoder

public static final Value.Decoder Decoder

The Value.Decoder for StringValues.

Constructors

FloatValue

public FloatValue(double v)

Creates an IntValue containing a int.

Parameters:
  • v – the float

Methods

encode

public static ByteBuffer encode(double v)

encode

public ByteBuffer encode()

equals

public boolean equals(Object obj)

getEncoding

public Encoding getEncoding()

getFloat

public double getFloat()

Returns the string from this StringValue

Returns:the string

hashCode

public int hashCode()

toString

public String toString()