public class IdentifierLongConverter extends Object implements LongConverter
The base 66 encoding support 0-9, A-Z, a-z, period, underscore, tilde and caret. Leading zeros are truncated.
As this is intended for timestamps based on the wall clock, these shouldn't conflict.
Negative ids are reserved for application specific encodings.
| Modifier and Type | Field and Description |
|---|---|
static IdentifierLongConverter |
INSTANCE |
protected static long |
MAX_SMALL_ID |
protected static SymbolsLongConverter |
SMALL_POSITIVE |
| Modifier | Constructor and Description |
|---|---|
protected |
IdentifierLongConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(net.openhft.chronicle.bytes.Bytes<?> bytes,
long value)
* Appends to provided
value to the provided text. |
void |
append(StringBuilder text,
long value)
Appends the provided
value to the provided text. |
int |
maxParseLength() |
long |
parse(CharSequence text)
Parses the provided
CharSequence and returns the parsed results as a
long primitive. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEncode, allSafeChars, asString, asText, asText, forSymbols, lengthCheck, maxParseLengthpublic static final IdentifierLongConverter INSTANCE
protected static final SymbolsLongConverter SMALL_POSITIVE
protected static final long MAX_SMALL_ID
public long parse(CharSequence text)
LongConverterCharSequence and returns the parsed results as a
long primitive.parse in interface LongConvertertext as an long primitive.public void append(StringBuilder text, long value)
LongConvertervalue to the provided text.append in interface LongConverterpublic void append(net.openhft.chronicle.bytes.Bytes<?> bytes,
long value)
LongConvertervalue to the provided text.append in interface LongConvertervalue - to append as textpublic int maxParseLength()
maxParseLength in interface LongConverterCopyright © 2022. All rights reserved.