protected class Optimization.DynamicIntArray extends java.lang.Object implements RevisionHandler
| Constructor and Description |
|---|
DynamicIntArray(int capacity)
Constructs a vector with the given capacity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(int element)
Adds an element to this vector.
|
java.lang.Object |
copy()
Produces a copy of this vector.
|
int |
elementAt(int index)
Returns the element at the given position.
|
java.lang.String |
getRevision()
Returns the revision string.
|
void |
removeAllElements()
Removes all components from this vector and sets its size to zero.
|
void |
removeElementAt(int index)
Deletes an element from this vector.
|
int |
size()
Returns the vector's current size.
|
public DynamicIntArray(int capacity)
capacity - the vector's initial capacitypublic final void addElement(int element)
element - the element to addpublic final java.lang.Object copy()
public final int elementAt(int index)
index - the element's indexpublic final void removeElementAt(int index)
index - the index of the element to be deletedpublic final void removeAllElements()
public final int size()
public java.lang.String getRevision()
getRevision in interface RevisionHandler