org.xwt.util
Class Vec
java.lang.Object
org.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
Constructor Summary |
Vec()
|
Vec(int i)
|
Vec(int i,
java.lang.Object[] store)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Vec
public Vec()
Vec
public Vec(int i)
Vec
public Vec(int i,
java.lang.Object[] store)
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)