public class DoubleSerializer extends Object implements AttributeSerializer<Double>
| Constructor and Description |
|---|
DoubleSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Double |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
Double |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
void |
verifyAttribute(Double value)
Verifies the given (not-null) attribute value is valid.
|
void |
write(WriteBuffer buffer,
Double attribute)
Writes the attribute value to the given WriteBuffer.
|
public void verifyAttribute(Double value)
AttributeHandlerIllegalArgumentException if the value is invalid,
otherwise simply returns.verifyAttribute in interface AttributeHandler<Double>value - to verifypublic Double convert(Object value)
AttributeHandlerIllegalArgumentException if it cannot be converted.convert in interface AttributeHandler<Double>value - to convertpublic Double read(ScanBuffer buffer)
AttributeSerializerread in interface AttributeSerializer<Double>buffer - ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, Double attribute)
AttributeSerializerwrite in interface AttributeSerializer<Double>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferCopyright © 2012–2014. All rights reserved.