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, wait
convert, verifyAttribute
public java.time.Duration read(ScanBuffer buffer)
AttributeSerializer
read
in interface AttributeSerializer<java.time.Duration>
buffer
- ReadBuffer to read attribute frompublic void write(WriteBuffer buffer, java.time.Duration attribute)
AttributeSerializer
write
in interface AttributeSerializer<java.time.Duration>
buffer
- WriteBuffer to write attribute toattribute
- Attribute to write to WriteBufferCopyright © 2012–2017. All rights reserved.