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