Package com.tangosol.util
Class WrapperCollections.AbstractWrapperListIterator<E>
java.lang.Object
com.tangosol.util.WrapperCollections.AbstractWrapperIterator<E>
com.tangosol.util.WrapperCollections.AbstractWrapperListIterator<E>
- All Implemented Interfaces:
Iterator<E>
,ListIterator<E>
- Enclosing class:
WrapperCollections
public abstract class WrapperCollections.AbstractWrapperListIterator<E>
extends WrapperCollections.AbstractWrapperIterator<E>
implements ListIterator<E>
ListIterator implementation which delegates all calls to another
ListIterator.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create an AbstractWrapperListIterator which delegates to the specified ListIterator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected ListIterator
<E> Return the Iterator to which all operations should be delegated to.boolean
int
previous()
int
void
Methods inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperIterator
equals, hashCode, hasNext, next, remove, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface java.util.ListIterator
hasNext, next, remove
-
Constructor Details
-
AbstractWrapperListIterator
Create an AbstractWrapperListIterator which delegates to the specified ListIterator.- Parameters:
iter
- the ListIterator to delegate all calls to
-
-
Method Details
-
getDelegate
Return the Iterator to which all operations should be delegated to.- Overrides:
getDelegate
in classWrapperCollections.AbstractWrapperIterator<E>
- Returns:
- the wrapped Iterator
-
add
- Specified by:
add
in interfaceListIterator<E>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<E>
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<E>
-
previous
- Specified by:
previous
in interfaceListIterator<E>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<E>
-
set
- Specified by:
set
in interfaceListIterator<E>
-