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 TypeMethodDescriptionvoidprivate ListIterator<? extends F> final booleanfinal intfinal Tprevious()final intvoidMethods inherited from class com.google.common.collect.TransformedIterator
hasNext, next, remove, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods 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:
hasPreviousin interfaceListIterator<F>
-
previous
- Specified by:
previousin interfaceListIterator<F>
-
nextIndex
public final int nextIndex()- Specified by:
nextIndexin interfaceListIterator<F>
-
previousIndex
public final int previousIndex()- Specified by:
previousIndexin interfaceListIterator<F>
-
set
- Specified by:
setin interfaceListIterator<F>
-
add
- Specified by:
addin interfaceListIterator<F>
-