Package com.oss.asn1
Class HugeContainer<T extends AbstractData>
java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.HugeContainer<T>
- Type Parameters:
T
- type of the Sequence/SetOf element value
- All Implemented Interfaces:
com.oss.asn1.Sizeable
,Serializable
,Cloneable
- Direct Known Subclasses:
HugeSequenceOf
,HugeSetOf
public abstract class HugeContainer<T extends AbstractData>
extends AbstractData
implements com.oss.asn1.Sizeable
The HugeContainer class implements functionality common to
HugeSequenceOf and HugeSetOf classes.
- Since:
- ASN.1/Java 1.4 beta A
- See Also:
-
Field Summary
Fields inherited from class com.oss.asn1.AbstractData
EQUALS, GREATER_THAN, LESS_THAN
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone 'this' object.void
delete()
Destroy the instance of the AbstractData.int
getSize()
Return the size of 'this' huge container.Get the value of 'this' object as an ObjectStorage object.void
setValue
(ObjectStorage<T> value) Set the value of 'this' object to the value of the ObjectStorage object.Methods inherited from class com.oss.asn1.AbstractData
equals, getTypeInfo, hashCode, isEncodable, isPDU, isValid, toString, toString
-
Method Details
-
getSize
public int getSize()Return the size of 'this' huge container.- Specified by:
getSize
in interfacecom.oss.asn1.Sizeable
- Returns:
- number of elements in the container.
-
setValue
Set the value of 'this' object to the value of the ObjectStorage object.- Parameters:
value
- the ObjectStorage object to set this object to.
-
objectStorageValue
Get the value of 'this' object as an ObjectStorage object.- Returns:
- primitive value of 'this' object as ObjectStorage.
-
clone
Clone 'this' object.- Overrides:
clone
in classAbstractData
- Returns:
- deep copy of 'this' object.
-
delete
public void delete()Destroy the instance of the AbstractData. The contract of this method is to facilitate garbage collection by explicit destruction of the data that is no longer needed.- Overrides:
delete
in classAbstractData
-