public class MicroDurationLongConverter extends Object implements LongConverter
LongConverter to convert durations represented as microseconds.
This class operates on long values, converting them to and from Java's Duration.| Constructor and Description |
|---|
MicroDurationLongConverter() |
| 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 microseconds) to the provided Bytes. |
void |
append(StringBuilder text,
long value)
Appends a
Duration representation of the provided long value (in microseconds) to the provided StringBuilder. |
long |
parse(CharSequence text)
Parses the provided
CharSequence into a duration and returns the equivalent duration in microseconds. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEncode, allSafeChars, asString, asText, asText, forSymbols, lengthCheck, lengthCheck, maxParseLength, maxParseLength, parsepublic long parse(CharSequence text)
CharSequence into a duration and returns the equivalent duration in microseconds.parse in interface LongConvertertext - The character sequence representing a duration in ISO-8601
format (e.g., "PT20.345S") to be parsed into total
microseconds.public void append(StringBuilder text, long value)
Duration representation of the provided long value (in microseconds) to the provided StringBuilder.append in interface LongConvertertext - The StringBuilder to which the ISO-8601 string
representation of the duration value will be
appended.value - The duration, expressed as a total number of microseconds,
to be formatted and appendedpublic void append(net.openhft.chronicle.bytes.Bytes<?> bytes,
long value)
Duration representation of the provided long value (in microseconds) to the provided Bytes.append in interface LongConverterbytes - The Bytes instance to
which the ISO-8601 string representation of the duration
value will be appendedvalue - The duration, expressed as a total number of microseconds,
to be formatted and appendedCopyright © 2026 Chronicle Software Ltd. All rights reserved.