public interface LongConverter
| Modifier and Type | Method and Description |
|---|---|
default void |
addEncode(char alias,
char as)
Add an alias for encoding text as a number
|
default boolean |
allSafeChars(WireOut wireOut)
All safe character for a give WireOut type without quotes or escaping.
|
default 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. |
default String |
asString(long value) |
default CharSequence |
asText(int value) |
default CharSequence |
asText(long value) |
static LongConverter |
forSymbols(String chars)
Creates an implementation for delegation
|
default void |
lengthCheck(CharSequence text)
checks that the length of the text is not greater than
maxParseLength() |
default int |
maxParseLength() |
static int |
maxParseLength(int based) |
long |
parse(CharSequence text)
Parses the provided
CharSequence and returns the parsed results as a
long primitive. |
static LongConverter forSymbols(String chars)
chars - symbols to usestatic int maxParseLength(int based)
long parse(CharSequence text)
CharSequence and returns the parsed results as a
long primitive.text as an long primitive.void append(StringBuilder text, long value)
value to the provided text.default void append(net.openhft.chronicle.bytes.Bytes<?> bytes,
long value)
value to the provided text.value - to append as textdefault String asString(long value)
default CharSequence asText(int value)
default CharSequence asText(long value)
default int maxParseLength()
default void lengthCheck(CharSequence text)
maxParseLength()text - to checkdefault boolean allSafeChars(WireOut wireOut)
wireOut - to write todefault void addEncode(char alias,
char as)
alias - to make the same as another characteras - to make ti the same asCopyright © 2022. All rights reserved.