Package com.oss.asn1

Class SequenceOf<T extends AbstractData>

Type Parameters:
T - type of the SEQUENCE OF element value
All Implemented Interfaces:
com.oss.asn1.Sizeable, Serializable, Cloneable, Iterable<T>
Direct Known Subclasses:
InfoObjectSet, SequenceOfDeferred, SequenceOfHugeDeferred

public abstract class SequenceOf<T extends AbstractData> extends AbstractContainer implements Iterable<T>
The SequenceOf class represents the ASN.1 SEQUENCE OF type
ASN.1/Java 1.0-beta A
See Also:
  • Method Details

    • add

      public void add(T element)
      Add an Element to this SEQUENCE OF.
      element - an element to add to this SEQUENCE OF
    • set

      public void set(T element, int atIndex)
      Set (replace) an Element in the SEQUENCE OF.
      element - new element to set.
      atIndex - index of the replaced element.
    • get

      public T get(int atIndex)
      Get an Element from this SEQUENCE OF.
      atIndex - index of the element.
      element specified by the index
    • insert

      public void insert(T element, int atIndex)
      Insert an Element into this SEQUENCE OF at specified index.
      element - element to insert.
      atIndex - index of inserted element.
    • remove

      public void remove(T element)
      Remove an Element from this SEQUENCE OF.
      element - element to remove.
    • equalTo

      public final boolean equalTo(SequenceOf that)
      Compare 'this' object to another Set object to see if their contents are the same.
      that - the SequenceOf object to compare 'this' object to.
      true if contents of both objects are the same.
    • iterator

      public Iterator<T> iterator()
      Returns an iterator over the elements in this SET OF in proper sequence.
      Specified by:
      iterator in interface Iterable<T extends AbstractData>
      Returns an iterator over the elements in this SET OF in proper sequence.
    • asCollection

      public Collection<T> asCollection()
      Return SEQUENCE OF as a collection of elements.
      collection of elements.