public class UUIDSerializer extends Object implements AttributeSerializer<UUID>
Constructor and Description |
---|
UUIDSerializer() |
Modifier and Type | Method and Description |
---|---|
UUID |
convert(Object value)
Converts the given (not-null) value to the expected datatype V.
|
UUID |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
void |
write(WriteBuffer buffer,
UUID attribute)
Writes the attribute value to the given WriteBuffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
verifyAttribute
public UUID read(ScanBuffer buffer)
AttributeSerializer
read
in interface AttributeSerializer<UUID>
buffer
- ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, UUID attribute)
AttributeSerializer
write
in interface AttributeSerializer<UUID>
buffer
- WriteBuffer to write attribute toattribute
- Attribute to write to WriteBufferpublic UUID convert(Object value)
AttributeSerializer
IllegalArgumentException
if it cannot be converted.convert
in interface AttributeSerializer<UUID>
value
- to convertCopyright © 2012–2017. All rights reserved.