Class Cksn
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- AbstractEncodedDataObject<NamedInteger>
-
- com.opencloud.slee.resources.in.datatypes.map.Cksn
-
- All Implemented Interfaces:
DataObject
,Serializable
public final class Cksn extends AbstractEncodedDataObject<NamedInteger>
Class Cksn encapsulates a cyphering key sequence number. It represents the ASN.1 OCTET STRING type MAP-MS-DataTypes.Cksn.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 - See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Cksn.EncodedValue
Cksn constants.
-
Field Summary
-
Fields inherited from class com.opencloud.slee.resources.cgin.AbstractEncodedDataObject
encoded
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly, setReadOnly
-
-
-
-
Constructor Detail
-
Cksn
public Cksn(byte[] data)
Constructs a new Cksn object from network-encoded data.- Parameters:
data
- network-encoded data- Throws:
NullPointerException
- if data is null
-
Cksn
public Cksn(byte[] data, int start, int len)
Constructs a new Cksn object from part of network-encoded data. The part starts at indexstart
and islen
bytes long. The most significant byte of the numeric value is in the lowest indexed byte of the array.- Parameters:
data
- network-encoded datastart
- starting offset of network-encoded data in byte arraylen
- length of the part- Throws:
NullPointerException
- if data is nullIllegalArgumentException
- if len is negative
-
-
Method Detail
-
getEncodedForm
public NamedInteger getEncodedForm()
Gets the encoded form.- Returns:
- encoded form
-
getByteArrayForm
public byte[] getByteArrayForm()
Gets the byte array encoded form. The size of the array is the least of 1, 2, 4, or 8 according to the type's bounds. The most significant byte of the numeric value is in the lowest indexed byte of the array.- Returns:
- byte array form
-
getFieldsMap
public Map<String,Object> getFieldsMap(boolean withAbsents)
Gets a Map from "encodedValue" to NamedInteger.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- ignored- Returns:
- Map from "encodedValue" to NamedInteger
-
clone
public Cksn clone()
Constructs a new mutable object that has a copy of the encoded state of this one.- Specified by:
clone
in interfaceDataObject
- Specified by:
clone
in classAbstractDataObject
- Returns:
- cloned object
-
-