com.sybase.collections
Class ArrayList

java.lang.Object
  extended by java.util.Vector
      extended by com.sybase.collections.ArrayList

public class ArrayList
extends java.util.Vector

Utility class to store elements, similar to J2SE ArrayList.


Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Constructor Summary
ArrayList()
          Initializes a new instance of the ArrayList class that is empty.
ArrayList(int capacity)
          Initializes a new instance of the ArrayList class that is empty and has the specified initial capacity.
 
Method Summary
protected  void addSlice(ArrayList from, int start, int finish)
          Adds part of the specified ArrayList to this instance.
 void clear()
          Removes all elements from the instance.
 
Methods inherited from class java.util.Vector
addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayList

public ArrayList()
Initializes a new instance of the ArrayList class that is empty.


ArrayList

public ArrayList(int capacity)
Initializes a new instance of the ArrayList class that is empty and has the specified initial capacity.

Parameters:
capacity - The initial number of elements that the ArrayList can contain.
Method Detail

clear

public void clear()
Removes all elements from the instance.


addSlice

protected void addSlice(ArrayList from,
                        int start,
                        int finish)
Adds part of the specified ArrayList to this instance.

Parameters:
from - The ArrayList to add.
start - The start index from where to add
finish - The end index.