|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.AbstractSparseArray.Crawler
protected class AbstractSparseArray.Crawler
A tree node iterator. The methods of this local class are not synchronized; the enclosing class is responsible for synchronization.
Field Summary | |
---|---|
protected static int |
ABOVE |
protected AbstractSparseArray.Node |
current |
protected boolean |
fForward |
protected int |
fromdir |
protected static int |
LEFT |
protected static int |
RIGHT |
protected static int |
SITTING |
Constructor Summary | |
---|---|
protected |
AbstractSparseArray.Crawler(AbstractSparseArray.Node head, int fromdir, boolean fForward) Crawler constructor. |
Method Summary | |
---|---|
Object |
clone() Make a shallow copy of the node crawler. |
protected AbstractSparseArray.Node |
currentNode() Returns the current Node in the iteration. |
long |
getIndex() Returns the index of the current value, which is the value returned by the most recent call to the next method. |
Object |
getValue() Returns the current value, which is the same value returned by the most recent call to the next method, or the most recent value passed to setValue if setValue were called after the next method. |
boolean |
hasNext() Returns true if the iteration has more elements. |
Object |
next() Returns the next element in the iteration. |
protected AbstractSparseArray.Node |
nextNode() Returns the next Node in the iteration. |
void |
remove() Removes from the underlying collection the last element returned by the iterator (optional operation). |
Object |
setValue(Object oValue) Stores a new value at the current value index, returning the value that was replaced. |
String |
toString() Provide a string representation of this node's value. |
Field Detail |
---|
protected static final int ABOVE
protected static final int LEFT
protected static final int SITTING
protected static final int RIGHT
protected AbstractSparseArray.Node current
protected int fromdir
protected boolean fForward
Constructor Detail |
---|
protected AbstractSparseArray.Crawler(AbstractSparseArray.Node head, int fromdir, boolean fForward)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface LongArray.Iterator
hasNext
in interface Iterator
public Object next()
next
in interface LongArray.Iterator
next
in interface Iterator
NoSuchElementException
- iteration has no more elementspublic long getIndex()
getIndex
in interface LongArray.Iterator
IllegalStateException
- if the next method has not yet been called, or the remove method has already been called after the last call to the next method.public Object getValue()
getValue
in interface LongArray.Iterator
IllegalStateException
- if the next method has not yet been called, or the remove method has already been called after the last call to the next method.public Object setValue(Object oValue)
setValue
in interface LongArray.Iterator
IllegalStateException
- if the next method has not yet been called, or the remove method has already been called after the last call to the next method.public void remove()
remove
in interface LongArray.Iterator
remove
in interface Iterator
UnsupportedOperationException
- if the remove operation is not supported by this IteratorIllegalStateException
- if the next method has not yet been called, or the remove method has already been called after the last call to the next method.public String toString()
public Object clone()
protected AbstractSparseArray.Node nextNode()
NoSuchElementException
- iteration has no more elementsprotected AbstractSparseArray.Node currentNode()
IllegalStateException
- if the next method has not yet been called, or the remove method has already been called after the last call to the next method.
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |