Package com.tangosol.util
Class ConverterCollections.ConverterLongArray.ConverterLongArrayIterator
java.lang.Object
com.tangosol.util.ConverterCollections.ConverterEnumerator<F,T>
com.tangosol.util.ConverterCollections.ConverterLongArray.ConverterLongArrayIterator
- All Implemented Interfaces:
LongArray.Iterator<T>,Enumeration<T>,Iterator<T>
- Enclosing class:
ConverterCollections.ConverterLongArray<F,T>
protected class ConverterCollections.ConverterLongArray.ConverterLongArrayIterator
extends ConverterCollections.ConverterEnumerator<F,T>
implements LongArray.Iterator<T>
An Iterator that can convert from raw types to desired types.
-
Field Summary
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterEnumerator
m_conv, m_iter -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a converting iterator. -
Method Summary
Modifier and TypeMethodDescriptionlonggetIndex()Returns the index of the current value, which is the value returned by the most recent call to the next method.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.Stores a new value at the current value index, returning the value that was replaced.Methods inherited from class com.tangosol.util.ConverterCollections.ConverterEnumerator
hasMoreElements, hasNext, next, nextElement, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIteratorMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface com.tangosol.util.LongArray.Iterator
hasNext, next, remove
-
Constructor Details
-
ConverterLongArrayIterator
Construct a converting iterator.- Parameters:
iter- the underlying iterator
-
-
Method Details
-
getIndex
public long getIndex()Description copied from interface:LongArray.IteratorReturns the index of the current value, which is the value returned by the most recent call to the next method.- Specified by:
getIndexin interfaceLongArray.Iterator<T>- Returns:
- the index of the current value
-
getValue
Description copied from interface:LongArray.IteratorReturns 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.- Specified by:
getValuein interfaceLongArray.Iterator<T>- Returns:
- the current value
-
setValue
Description copied from interface:LongArray.IteratorStores a new value at the current value index, returning the value that was replaced. The index of the current value is obtainable by calling the getIndex method.- Specified by:
setValuein interfaceLongArray.Iterator<T>- Parameters:
oValue- the new value to store- Returns:
- the replaced value
-