public class FloatSerializer extends Object implements OrderPreservingSerializer<Float>
| Constructor and Description |
|---|
FloatSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Float |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
Float |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
Float |
readByteOrder(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer assuming it was written in byte order.
|
void |
write(WriteBuffer buffer,
Float attribute)
Writes the attribute value to the given WriteBuffer.
|
void |
writeByteOrder(WriteBuffer buffer,
Float attribute)
Writes the attribute value to the given WriteBuffer such that the byte order of the result is equal to the
natural order of the attribute.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifyAttributepublic Float convert(Object value)
AttributeSerializerIllegalArgumentException if it cannot be converted.convert in interface AttributeSerializer<Float>value - to convertpublic Float read(ScanBuffer buffer)
AttributeSerializerread in interface AttributeSerializer<Float>buffer - ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, Float attribute)
AttributeSerializerwrite in interface AttributeSerializer<Float>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferpublic Float readByteOrder(ScanBuffer buffer)
OrderPreservingSerializerreadByteOrder in interface OrderPreservingSerializer<Float>buffer - ReadBuffer to read attribute frompublic void writeByteOrder(WriteBuffer buffer, Float attribute)
OrderPreservingSerializerwriteByteOrder in interface OrderPreservingSerializer<Float>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferCopyright © 2012–2015. All rights reserved.