public class WordsLongConverter extends Object implements LongConverter
| Constructor and Description |
|---|
WordsLongConverter()
Default constructor.
|
WordsLongConverter(char sep)
Constructor with a specified word separator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(net.openhft.chronicle.bytes.Bytes<?> bytes,
long value)
Appends the word representation of the given long value to the provided Bytes object.
|
void |
append(StringBuilder text,
long value)
Appends the word representation of the given long value to the provided StringBuilder.
|
long |
parse(CharSequence text)
Parses the provided text to produce a long value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEncode, allSafeChars, asString, asText, asText, forSymbols, lengthCheck, maxParseLength, maxParseLengthpublic WordsLongConverter()
public WordsLongConverter(char sep)
sep - The character used to separate words.public long parse(CharSequence text)
parse in interface LongConvertertext - The sequence of words to parse.IllegalArgumentException - If a word in the sequence is not recognized.public void append(StringBuilder text, long value)
append in interface LongConvertertext - The StringBuilder to append to.value - The long value to be converted and appended.public void append(net.openhft.chronicle.bytes.Bytes<?> bytes,
long value)
append in interface LongConverterbytes - The Bytes object to append to.value - The long value to be converted and appended.Copyright © 2023. All rights reserved.