com.sun.jimi.util
Class ExpandableArray
java.lang.Object
|
+--com.sun.jimi.util.ExpandableArray
- public class ExpandableArray
- extends java.lang.Object
Simple Single Threaded Expandable Array.
Class to replace Vector without the synchronized overhead
Expandable array implementation, only the minimal set of methods are implemented
this set may expand as other clients use this code and require them.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
elementCount_
protected int elementCount_
ExpandableArray
public ExpandableArray(int initialCapacity,
int capacityIncrement)
ExpandableArray
public ExpandableArray(int initialCapacity)
ExpandableArray
public ExpandableArray()
size
public int size()
addElement
public int addElement(java.lang.Object o)
- Returns:
- the index of the added object.
elementAt
public java.lang.Object elementAt(int i)
removeElementAt
public void removeElementAt(int i)
lastElement
public java.lang.Object lastElement()