public class SparseArray<V> extends com.oracle.common.collections.SparseArray<V> implements LongArray<V>
Modifier and Type | Class and Description |
---|---|
protected class |
SparseArray.Crawler |
com.oracle.common.collections.SparseArray.ObjectNode<V>
com.oracle.common.collections.AbstractSparseArray.Node<V>
LongArray.Iterator<V>
Constructor and Description |
---|
SparseArray() |
Modifier and Type | Method and Description |
---|---|
protected SparseArray.Crawler |
instantiateCrawler(com.oracle.common.collections.AbstractSparseArray.Node head,
int fromdir,
boolean fForward)
Instantiate a new Crawler at the specified location and direction.
|
LongArray.Iterator<V> |
iterator()
Obtain a LongArray.Iterator of the contents of the LongArray.
|
LongArray.Iterator<V> |
iterator(long lIndex)
Obtain a LongArray.Iterator of the contents of the LongArray, starting
at a particular index such that the first call to
next will
set the location of the iterator at the first existent index that is
greater than or equal to the specified index, or will throw a
NoSuchElementException if there is no such existent index. |
LongArray.Iterator<V> |
reverseIterator()
Obtain a LongArray.Iterator of the contents of the LongArray in
reverse order (decreasing indices).
|
LongArray.Iterator<V> |
reverseIterator(long lIndex)
Obtain a LongArray.Iterator of the contents of the LongArray in
reverse order (decreasing indices), starting at a particular
index such that the first call to
next will set the
location of the iterator at the first existent index that is
less than or equal to the specified index, or will throw a
NoSuchElementException if there is no such existent index. |
adjustDoubleBalance, balancedInsertion, balancePostRemove, ceiling, ceilingIndex, clear, doubleRotate, exists, find, findInsertionPoint, floor, floorIndex, get, getFirstIndex, getLastIndex, getSize, print, remove, remove, remove, replace, rotate, set, validate
add, contains, equals, hashCode, indexOf, indexOf, isEmpty, lastIndexOf, lastIndexOf, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
add, ceiling, ceilingIndex, clear, clone, contains, equals, exists, floor, floorIndex, get, getFirstIndex, getLastIndex, getSize, indexOf, indexOf, isEmpty, keys, lastIndexOf, lastIndexOf, remove, remove, set, toString
forEach, spliterator
public LongArray.Iterator<V> iterator()
com.oracle.common.collections.AbstractSparseArray
public LongArray.Iterator<V> iterator(long lIndex)
com.oracle.common.collections.AbstractSparseArray
next
will
set the location of the iterator at the first existent index that is
greater than or equal to the specified index, or will throw a
NoSuchElementException if there is no such existent index.public LongArray.Iterator<V> reverseIterator()
com.oracle.common.collections.AbstractSparseArray
public LongArray.Iterator<V> reverseIterator(long lIndex)
com.oracle.common.collections.AbstractSparseArray
next
will set the
location of the iterator at the first existent index that is
less than or equal to the specified index, or will throw a
NoSuchElementException if there is no such existent index.protected SparseArray.Crawler instantiateCrawler(com.oracle.common.collections.AbstractSparseArray.Node head, int fromdir, boolean fForward)
com.oracle.common.collections.AbstractSparseArray
instantiateCrawler
in class com.oracle.common.collections.AbstractSparseArray<V>
head
- the node at which to start crawlingfromdir
- the direction in which to start crawlingfForward
- true iff crawler should advance forward towards
the next element