public class NanoDurationLongConverter extends Object implements LongConverter
LongConverter for converting durations represented as nanoseconds.
This class operates on long values, converting them to and from Java's Duration.| Constructor and Description |
|---|
NanoDurationLongConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(net.openhft.chronicle.bytes.Bytes<?> bytes,
long value)
Appends a
Duration representation of the provided long value (in nanoseconds) to the provided Bytes. |
void |
append(StringBuilder text,
long value)
Appends a
Duration representation of the provided long value (in nanoseconds) to the provided StringBuilder. |
long |
parse(CharSequence text)
Parses the provided
CharSequence into a duration and returns the equivalent duration in nanoseconds. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEncode, allSafeChars, asString, asText, asText, forSymbols, lengthCheck, maxParseLength, maxParseLengthpublic long parse(CharSequence text)
CharSequence into a duration and returns the equivalent duration in nanoseconds.parse in interface LongConvertertext - the CharSequence to parsepublic void append(StringBuilder text, long value)
Duration representation of the provided long value (in nanoseconds) to the provided StringBuilder.append in interface LongConvertertext - the StringBuilder to append tovalue - the duration as a long value in nanosecondspublic void append(net.openhft.chronicle.bytes.Bytes<?> bytes,
long value)
Duration representation of the provided long value (in nanoseconds) to the provided Bytes.append in interface LongConverterbytes - the Bytes object to append tovalue - the duration as a long value in nanosecondsCopyright © 2023. All rights reserved.