public final class Cksn extends AbstractEncodedDataObject<NamedInteger>
This is a skeleton API, designed so that a binary-compatible convenience API could be introduced without having to upgrade to a new release.
The encoded representation is as tabulated below.
Data Encoding - based on 3GPP TS 24.008 V10.1.0 (2010-12) §10.5.1.2 p382 | |||||||||
---|---|---|---|---|---|---|---|---|---|
8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | ||
Octet 0 | Cyphering key sequence number IEI | Spare (0) | Key sequence |
Modifier and Type | Class and Description |
---|---|
static class |
Cksn.EncodedValue
Cksn constants.
|
encoded
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
Cksn(byte[] data)
Constructs a new Cksn object from network-encoded data.
|
Cksn(byte[] data,
int start,
int len)
Constructs a new Cksn object from part of network-encoded data.
|
Modifier and Type | Method and Description |
---|---|
Cksn |
clone()
Constructs a new mutable object that has a copy of the encoded state of this one.
|
byte[] |
getByteArrayForm()
Gets the byte array encoded form.
|
NamedInteger |
getEncodedForm()
Gets the encoded form.
|
Map<String,Object> |
getFieldsMap(boolean withAbsents)
Gets a Map from "encodedValue" to NamedInteger.
|
equals, hashCode, toString
checkModify, isReadOnly, setReadOnly
public Cksn(byte[] data)
data
- network-encoded dataNullPointerException
- if data is nullpublic Cksn(byte[] data, int start, int len)
start
and is len
bytes long.
The most significant byte of the numeric value is in the lowest indexed byte of the array.data
- network-encoded datastart
- starting offset of network-encoded data in byte arraylen
- length of the partNullPointerException
- if data is nullIllegalArgumentException
- if len is negativepublic NamedInteger getEncodedForm()
public byte[] getByteArrayForm()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignoredpublic Cksn clone()
clone
in interface DataObject
clone
in class AbstractDataObject