public abstract class AbstractLongConverter extends Object implements LongConverter
LongConverter interface.
This class delegates the core conversion operations to an encapsulated LongConverter instance.
Subclasses can build upon this base while retaining or customizing the behavior of the underlying converter.
| Modifier and Type | Field and Description |
|---|---|
protected LongConverter |
converter |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLongConverter(LongConverter underlyingConverter)
Constructs an
AbstractLongConverter with a specific converter. |
protected |
AbstractLongConverter(String symbolSet)
Constructs an
AbstractLongConverter using a given set of symbols. |
| Modifier and Type | Method and Description |
|---|---|
void |
append(net.openhft.chronicle.bytes.Bytes<?> destination,
long numericValue)
Appends the provided long value to the destination
Bytes. |
void |
append(StringBuilder destinationBuilder,
long numericValue)
Appends the provided long value to the destination
StringBuilder. |
int |
maxParseLength()
Retrieves the maximum number of characters that can be parsed by the underlying converter.
|
long |
parse(CharSequence textToParse)
Parses the provided text using the underlying converter.
|
long |
parse(CharSequence textToParse,
int beginIndex,
int endIndex)
Parses a part of the provided text using the underlying converter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEncode, allSafeChars, asString, asText, asText, forSymbols, lengthCheck, lengthCheck, maxParseLengthprotected final LongConverter converter
protected AbstractLongConverter(String symbolSet)
AbstractLongConverter using a given set of symbols.
Internally, it delegates to LongConverter.forSymbols(String) to build
a converter suited to the supplied symbols.symbolSet - the characters that define the encoding schemeprotected AbstractLongConverter(LongConverter underlyingConverter)
AbstractLongConverter with a specific converter.
This constructor allows subclasses to supply their own implementation.underlyingConverter - the LongConverter that performs the workpublic int maxParseLength()
maxParseLength in interface LongConverterpublic long parse(CharSequence textToParse)
parse in interface LongConvertertextToParse - the text to parsepublic long parse(CharSequence textToParse, int beginIndex, int endIndex)
parse in interface LongConvertertextToParse - the text to parsebeginIndex - the beginning index, inclusiveendIndex - the ending index, exclusivepublic void append(StringBuilder destinationBuilder, long numericValue)
StringBuilder.append in interface LongConverterdestinationBuilder - the builder receiving the formatted valuenumericValue - the long value to convert and appendpublic void append(net.openhft.chronicle.bytes.Bytes<?> destination,
long numericValue)
Bytes.append in interface LongConverterdestination - the Bytes to append tonumericValue - the long value to convert and appendCopyright © 2026 Chronicle Software Ltd. All rights reserved.