public class UUIDSerializer extends Object implements OrderPreservingSerializer<UUID>
| Constructor and Description |
|---|
UUIDSerializer() |
| Modifier and Type | Method and Description |
|---|---|
UUID |
convert(Object value)
Converts the given (not-null) value to the expected data type V.
|
UUID |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
UUID |
readByteOrder(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer assuming it was written in byte order.
|
void |
write(WriteBuffer buffer,
UUID attribute)
Writes the attribute value to the given WriteBuffer.
|
void |
writeByteOrder(WriteBuffer buffer,
UUID 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 UUID read(ScanBuffer buffer)
AttributeSerializerIt is expected that this read operation adjusts the position in the ReadBuffer to after the attribute value.
read in interface AttributeSerializer<UUID>buffer - ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, UUID attribute)
AttributeSerializerIt is expected that this write operation adjusts the position in the WriteBuffer to after the attribute value.
write in interface AttributeSerializer<UUID>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferpublic UUID convert(Object value)
AttributeSerializerIllegalArgumentException if it cannot be converted.convert in interface AttributeSerializer<UUID>value - to convertpublic UUID readByteOrder(ScanBuffer buffer)
OrderPreservingSerializerIt is expected that this read operation adjusts the position in the ReadBuffer to after the attribute value.
readByteOrder in interface OrderPreservingSerializer<UUID>buffer - ReadBuffer to read attribute frompublic void writeByteOrder(WriteBuffer buffer, UUID attribute)
OrderPreservingSerializerIt is expected that this write operation adjusts the position in the WriteBuffer to after the attribute value.
writeByteOrder in interface OrderPreservingSerializer<UUID>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferCopyright © 2012–2023. All rights reserved.