public class DurationSerializer extends Object implements AttributeSerializer<java.time.Duration>
| Constructor and Description |
|---|
DurationSerializer() |
| Modifier and Type | Method and Description |
|---|---|
java.time.Duration |
read(ScanBuffer buffer)
Reads an attribute from the given ReadBuffer.
|
void |
write(WriteBuffer buffer,
java.time.Duration attribute)
Writes the attribute value to the given WriteBuffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, verifyAttributepublic java.time.Duration read(ScanBuffer buffer)
AttributeSerializerread in interface AttributeSerializer<java.time.Duration>buffer - ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, java.time.Duration attribute)
AttributeSerializerwrite in interface AttributeSerializer<java.time.Duration>buffer - WriteBuffer to write attribute toattribute - Attribute to write to WriteBufferCopyright © 2012–2015. All rights reserved.