Class Vector

java.lang.Object
antlr.collections.impl.Vector
All Implemented Interfaces:
Cloneable

public class Vector extends Object implements Cloneable
  • Field Details

    • data

      protected Object[] data
    • lastElement

      protected int lastElement
  • Constructor Details

    • Vector

      public Vector()
    • Vector

      public Vector(int size)
  • Method Details

    • appendElement

      public void appendElement(Object o)
    • capacity

      public int capacity()
      Returns the current capacity of the vector.
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • elementAt

      public Object elementAt(int i)
      Returns the element at the specified index.
      Parameters:
      index - the index of the desired element
      Throws:
      ArrayIndexOutOfBoundsException - If an invalid index was given.
    • elements

      public Enumeration elements()
    • ensureCapacity

      public void ensureCapacity(int minIndex)
    • removeElement

      public boolean removeElement(Object o)
    • setElementAt

      public void setElementAt(Object obj, int i)
    • size

      public int size()