public abstract class AbstractLazyEncodedNamedInteger<T extends NamedInteger> extends AbstractLazyEncodedDataObject<T>
isDecoded
encoded
FIELD_ABSENT, FIELD_UNINITIALISED
Modifier | Constructor and Description |
---|---|
protected |
AbstractLazyEncodedNamedInteger()
Constructs a new AbstractLazyEncodedNamedInteger with no field values.
|
protected |
AbstractLazyEncodedNamedInteger(byte[] data)
Constructs a new AbstractLazyEncodedNamedInteger object from network-encoded data.
|
protected |
AbstractLazyEncodedNamedInteger(byte[] data,
int start,
int len)
Constructs a new AbstractLazyEncodedNamedInteger from part of given network-encoded data.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
fromValue(int value)
Converts an int to a NamedInteger.
|
checkDecode, checkFieldsSet, checkModifyAndDecode, decode, encode
equals, getFieldsMap, hashCode, toString
checkModify, clone, isReadOnly, setReadOnly
protected AbstractLazyEncodedNamedInteger()
protected AbstractLazyEncodedNamedInteger(byte[] data)
data
- network-encoded dataNullPointerException
- if data is nullprotected AbstractLazyEncodedNamedInteger(byte[] data, int start, int len)
start
and is len
bytes long.
The state is in the encoded form:
it is not decoded and might not be decodable.data
- network-encoded datastart
- starting offset of network-encoded datalen
- length of encoded data in bytesNullPointerException
- if data is nullIllegalArgumentException
- if len is negativeArrayIndexOutOfBoundsException
- if the part is not within the dataprotected abstract T fromValue(int value)
value
- int