Package com.oss.asn1

Class AbstractContainer

java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.AbstractContainer
All Implemented Interfaces:
com.oss.asn1.Sizeable, Serializable, Cloneable
Direct Known Subclasses:
SequenceOf, SequenceOfDeferred, SetOf, SetOfDeferred

public abstract class AbstractContainer extends AbstractData implements com.oss.asn1.Sizeable
The AbstractContainer class implements functionality common to SequenceOf and SetOf classes.
Since:
ASN.1/Java 6.0
See Also:
  • Method Details

    • removeAllElements

      public abstract void removeAllElements()
      Remove all AbstractData object elements from the container. Container becomes empty.
    • size

      @Deprecated public int size()
      Deprecated.
      It was replaced by the new method getSize().
    • getSize

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

      public final Enumeration elements()
      Get an Enumeration of the elements stored in the container.
      Returns:
      Enumeration of the objects in the container.
    • clone

      public Object clone()
      Create a deep copy of 'this' object.
      Returns:
      copy of 'this' object.