org.xwt.util
Class Vec

java.lang.Object
  extended byorg.xwt.util.Vec
All Implemented Interfaces:
java.io.Serializable

public final class Vec
extends java.lang.Object
implements java.io.Serializable

An unsynchronized Vector implementation; same semantics as java.util.Vector. Useful for JDK1.1 platforms that don't have java.util.ArrayList.

See Also:
Vector, Serialized Form

Nested Class Summary
static interface Vec.CompareFunc
           
 
Constructor Summary
Vec()
           
Vec(int i)
           
Vec(int i, java.lang.Object[] store)
           
 
Method Summary
 void addElement(java.lang.Object o)
           
 void copyInto(java.lang.Object[] out)
           
 java.lang.Object elementAt(int i)
           
 void fromArray(java.lang.Object[] in)
           
 int indexOf(java.lang.Object o)
           
 void insertElementAt(java.lang.Object o, int at)
           
 java.lang.Object lastElement()
           
 java.lang.Object peek()
           
 java.lang.Object pop()
           
 void push(java.lang.Object o)
           
 void removeAllElements()
           
 void removeElement(java.lang.Object o)
           
 void removeElementAt(int i)
           
 void setElementAt(java.lang.Object o, int i)
           
 void setSize(int newSize)
           
 int size()
           
 void sort(Vec.CompareFunc c)
           
 void toArray(java.lang.Object[] o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vec

public Vec()

Vec

public Vec(int i)

Vec

public Vec(int i,
           java.lang.Object[] store)
Method Detail

removeAllElements

public void removeAllElements()

toArray

public void toArray(java.lang.Object[] o)

indexOf

public int indexOf(java.lang.Object o)

addElement

public void addElement(java.lang.Object o)

peek

public java.lang.Object peek()

elementAt

public java.lang.Object elementAt(int i)

lastElement

public java.lang.Object lastElement()

push

public void push(java.lang.Object o)

pop

public java.lang.Object pop()

size

public int size()

setSize

public void setSize(int newSize)

copyInto

public void copyInto(java.lang.Object[] out)

fromArray

public void fromArray(java.lang.Object[] in)

removeElementAt

public void removeElementAt(int i)

setElementAt

public void setElementAt(java.lang.Object o,
                         int i)

removeElement

public void removeElement(java.lang.Object o)

insertElementAt

public void insertElementAt(java.lang.Object o,
                            int at)

sort

public void sort(Vec.CompareFunc c)