public abstract class AbstractEncodedDataObject<T> extends AbstractFieldsObject
Modifier and Type | Field and Description |
---|---|
protected T |
encoded
Encoded data.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Modifier | Constructor and Description |
---|---|
protected |
AbstractEncodedDataObject()
Constructs a new AbstractEncodedDataObject with uninitialised encoded state.
|
protected |
AbstractEncodedDataObject(byte[] data,
int start,
int len)
Constructs a new AbstractEncodedDataObject from part of given network-encoded data.
|
equals, getFieldsMap, hashCode, toString
checkModify, clone, isReadOnly, setReadOnly
protected volatile T encoded
null
then the encoded form of the state is not known.
(There may or may not be a decoded form of the state,
and that may or may not be known.)protected AbstractEncodedDataObject()
protected AbstractEncodedDataObject(byte[] data, int start, int len)
start
and is len
bytes long.
The data 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 data