|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.util.intr.IntArray
public final class IntArray
A dynamically growing array of integers. Valid indices of this array are in the range [0, Integer.MAX_VALUE - 1].
In the underlying implementation, this dynamically growing array increases in size to adapt to elements being added (the size of the underlying data structure supporting this dynamically growing array is invisible to the programmer). In the underlying implementation, this dynamic array never decreases in size. Underlying size expansions are implemented such that the operation of expanding in size is amortized over the constant time complexity of inserting new elements into this dynamic array.
An instance of this class is serializable; however, serialized instances of this class should not be stored in a persistent manner because the serialization implemented in this class makes no attempt at handling class versioning.
Constructor Summary | |
---|---|
IntArray()
Creates a new IntArray object. |
Method Summary | |
---|---|
int |
getIntAtIndex(int index)
Returns the value at specified index. |
void |
setIntAtIndex(int value,
int index)
Sets the specified value at specified index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntArray()
Method Detail |
---|
public final int getIntAtIndex(int index)
ArrayIndexOutOfBoundsException
- if index is negative or
Integer.MAX_VALUE.public final void setIntAtIndex(int value, int index)
NOTE: Setting very large indices to non-zero values implies instantiating a very large underlying data structure.
ArrayIndexOutOfBoundsException
- if index is negative or
Integer.MAX_VALUE.
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |