|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.SimpleLongArray.Iterator
public class SimpleLongArray.Iterator
An Iterator that adds a "current element" concept, similar to the Map.Entry
interface.
Constructor Summary | |
---|---|
SimpleLongArray.Iterator(int iNext, boolean fForward) Construct an iterator that will iterate over the SimpleLongArray starting with the specified index. |
Method Summary | |
---|---|
long |
getIndex() Returns the index of the current value, which is the value returned by the most recent call to the next method. |
java.lang.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. |
java.lang.Object |
next() Returns the next element in the iteration. |
void |
remove() Removes from the underlying collection the last element returned by the iterator (optional operation). |
java.lang.Object |
setValue(java.lang.Object oValue) Stores a new value at the current value index, returning the value that was replaced. |
Constructor Detail |
---|
public SimpleLongArray.Iterator(int iNext, boolean fForward)
iNext
- the index to start iterating fromMethod Detail |
---|
public boolean hasNext()
hasNext
in interface com.oracle.common.collections.LongArray.Iterator
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface com.oracle.common.collections.LongArray.Iterator
next
in interface java.util.Iterator
java.util.NoSuchElementException
- iteration has no more elementspublic long getIndex()
getIndex
in interface com.oracle.common.collections.LongArray.Iterator
java.lang.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 java.lang.Object getValue()
getValue
in interface com.oracle.common.collections.LongArray.Iterator
java.lang.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 java.lang.Object setValue(java.lang.Object oValue)
setValue
in interface com.oracle.common.collections.LongArray.Iterator
java.lang.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 com.oracle.common.collections.LongArray.Iterator
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- if the remove operation is not supported by this Iteratorjava.lang.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® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |