gov.nasa.alsUtility
Class GrowOnlyArray
java.lang.Object
gov.nasa.alsUtility.GrowOnlyArray
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- UpdateAndPropagateList
- public class GrowOnlyArray
- extends java.lang.Object
- implements java.io.Serializable
growing list of objects that will never need the garbage collector (for speed)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INITIAL_SIZE
public static final int DEFAULT_INITIAL_SIZE
- See Also:
- Constant Field Values
DEFAULT_GROWBY
public static final int DEFAULT_GROWBY
- See Also:
- Constant Field Values
growBy
protected int growBy
array
protected java.lang.Object[] array
currentSize
protected int currentSize
GrowOnlyArray
public GrowOnlyArray()
GrowOnlyArray
public GrowOnlyArray(int inInitialSize,
int inGrowBy)
size
public int size()
reinitialize
public void reinitialize()
add
public void add(java.lang.Object o)
get
public java.lang.Object get(int i)
grow
protected void grow()