Package com.google.common.collect
Class TransformedListIterator<F,T>
java.lang.Object
com.google.common.collect.TransformedIterator<F,T>
com.google.common.collect.TransformedListIterator<F,T>
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
abstract class TransformedListIterator<F,T>
extends TransformedIterator<F,T>
implements ListIterator<T>
An iterator that transforms a backing list iterator; for internal use. This avoids the object
overhead of constructing a
Function
for internal methods.-
Field Summary
Fields inherited from class com.google.common.collect.TransformedIterator
backingIterator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private ListIterator
<? extends F> final boolean
final int
final T
previous()
final int
void
Methods inherited from class com.google.common.collect.TransformedIterator
hasNext, next, remove, transform
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface java.util.ListIterator
hasNext, next, remove
-
Constructor Details
-
TransformedListIterator
TransformedListIterator(ListIterator<? extends F> backingIterator)
-
-
Method Details
-
backingIterator
-
hasPrevious
public final boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<F>
-
previous
- Specified by:
previous
in interfaceListIterator<F>
-
nextIndex
public final int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<F>
-
previousIndex
public final int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<F>
-
set
- Specified by:
set
in interfaceListIterator<F>
-
add
- Specified by:
add
in interfaceListIterator<F>
-