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:
  • Method Details

    • getSize

      public int getSize()
      Return the size of 'this' huge container.
      Specified by:
      getSize in interface com.oss.asn1.Sizeable
      Returns:
      number of elements in the container.
    • setValue

      public void setValue(ObjectStorage<T> value)
      Set the value of 'this' object to the value of the ObjectStorage object.
      Parameters:
      value - the ObjectStorage object to set this object to.
    • objectStorageValue

      public ObjectStorage<T> objectStorageValue()
      Get the value of 'this' object as an ObjectStorage object.
      Returns:
      primitive value of 'this' object as ObjectStorage.
    • clone

      public Object clone()
      Clone 'this' object.
      Overrides:
      clone in class AbstractData
      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 class AbstractData