com.google.common.collect
@GwtCompatible public abstract class ForwardingListIterator<E> extends ForwardingIterator<E> implements java.util.ListIterator<E>
Modifier | Constructor and Description |
---|---|
protected |
ForwardingListIterator()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E element) |
protected abstract java.util.ListIterator<E> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
boolean |
hasPrevious() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
set(E element) |
hasNext, next, remove
toString
protected ForwardingListIterator()
protected abstract java.util.ListIterator<E> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingIterator<E>
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<E>
public int nextIndex()
nextIndex
in interface java.util.ListIterator<E>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<E>