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.
  • Constructor Details

    • ConverterLongArrayIterator

      public ConverterLongArrayIterator(LongArray.Iterator<F> iter)
      Construct a converting iterator.
      Parameters:
      iter - the underlying iterator
  • Method Details

    • 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 interface LongArray.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 interface LongArray.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 interface LongArray.Iterator<T>
      Parameters:
      oValue - the new value to store
      Returns:
      the replaced value