public class FloatSerializer extends Object implements AttributeSerializer<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.
|
void |
verifyAttribute(Float value)
Verifies the given (not-null) attribute value is valid.
|
void |
write(WriteBuffer buffer,
Float attribute)
Writes the attribute value to the given WriteBuffer.
|
public void verifyAttribute(Float value)
AttributeHandlerIllegalArgumentException if the value is invalid,
otherwise simply returns.verifyAttribute in interface AttributeHandler<Float>value - to verifypublic Float convert(Object value)
AttributeHandlerIllegalArgumentException if it cannot be converted.convert in interface AttributeHandler<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 WriteBufferCopyright © 2012–2014. All rights reserved.