Package deltix.qsrv.hf.pub.values
Class FloatValueBean
- java.lang.Object
-
- deltix.qsrv.hf.pub.values.ValueBean
-
- deltix.qsrv.hf.pub.values.FloatValueBean
-
- All Implemented Interfaces:
ReadableValue
,WritableValue
,java.io.Serializable
public final class FloatValueBean extends ValueBean
Holds a float value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatValueBean(FloatDataType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
getBoxedValue()
double
getDouble()
float
getFloat()
float
getRaw()
java.lang.String
getString()
boolean
isNull()
Always returnsfalse
for non-nullable field.void
writeDouble(double value)
void
writeFloat(float value)
void
writeNull()
void
writeString(java.lang.CharSequence s)
-
Methods inherited from class deltix.qsrv.hf.pub.values.ValueBean
checkNotNull, forType, getArrayLength, getBinary, getBinary, getBinaryLength, getBoolean, getByte, getChar, getFieldDecoder, getFieldEncoder, getInt, getLong, getShort, nextReadableElement, nextWritableElement, openBinary, setArrayLength, toString, writeBinary, writeBoolean, writeChar, writeInt, writeLong
-
-
-
-
Constructor Detail
-
FloatValueBean
public FloatValueBean(FloatDataType type)
-
-
Method Detail
-
getRaw
public float getRaw()
-
getFloat
public float getFloat() throws NullValueException
- Specified by:
getFloat
in interfaceReadableValue
- Overrides:
getFloat
in classValueBean
- Throws:
NullValueException
-
getDouble
public double getDouble() throws NullValueException
- Specified by:
getDouble
in interfaceReadableValue
- Overrides:
getDouble
in classValueBean
- Throws:
NullValueException
-
writeFloat
public void writeFloat(float value)
- Specified by:
writeFloat
in interfaceWritableValue
- Overrides:
writeFloat
in classValueBean
-
writeDouble
public void writeDouble(double value)
- Specified by:
writeDouble
in interfaceWritableValue
- Overrides:
writeDouble
in classValueBean
-
getString
public java.lang.String getString() throws NullValueException
- Throws:
NullValueException
-
isNull
public boolean isNull()
Description copied from interface:ReadableValue
Always returnsfalse
for non-nullable field.
-
writeNull
public void writeNull()
-
writeString
public void writeString(java.lang.CharSequence s)
-
getBoxedValue
protected java.lang.Object getBoxedValue()
- Specified by:
getBoxedValue
in classValueBean
-
-