public class PowerOfTwoLongConverter extends Object implements LongConverter
| Constructor and Description |
|---|
PowerOfTwoLongConverter(String symbols) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEncode(char alias,
char as)
Add an alias for encoding text as a number
|
void |
append(net.openhft.chronicle.bytes.Bytes<?> text,
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, waitallSafeChars, asString, asText, asText, forSymbols, lengthCheck, maxParseLengthpublic PowerOfTwoLongConverter(String symbols)
public int maxParseLength()
maxParseLength in interface LongConverterpublic 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<?> text,
long value)
LongConvertervalue to the provided text.append in interface LongConvertervalue - to append as textpublic void addEncode(char alias,
char as)
LongConverteraddEncode in interface LongConverteralias - to make the same as another characteras - to make ti the same asCopyright © 2022. All rights reserved.