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
Constructors Constructor Description ConverterLongArrayIterator(LongArray.Iterator<F> iter)
Construct a converting iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getIndex()
Returns the index of the current value, which is the value returned by the most recent call to the next method.T
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.T
setValue(T oValue)
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, remove
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface com.tangosol.util.LongArray.Iterator
hasNext, next, remove
-
-
-
-
Constructor Detail
-
ConverterLongArrayIterator
public ConverterLongArrayIterator(LongArray.Iterator<F> iter)
Construct a converting iterator.- Parameters:
iter
- the underlying iterator
-
-
Method Detail
-
getIndex
public long getIndex()
Description copied from interface:LongArray.Iterator
Returns the index of the current value, which is the value returned by the most recent call to the next method.- Specified by:
getIndex
in interfaceLongArray.Iterator<T>
- Returns:
- the index of the current value
-
getValue
public T getValue()
Description copied from interface:LongArray.Iterator
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.- Specified by:
getValue
in interfaceLongArray.Iterator<T>
- Returns:
- the current value
-
setValue
public T setValue(T oValue)
Description copied from interface:LongArray.Iterator
Stores 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:
setValue
in interfaceLongArray.Iterator<T>
- Parameters:
oValue
- the new value to store- Returns:
- the replaced value
-
-