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
ConstructorsModifierConstructorDescriptionprotectedCreate an AbstractWrapperListIterator which delegates to the specified ListIterator. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ListIterator<E> Return the Iterator to which all operations should be delegated to.booleanintprevious()intvoidMethods inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperIterator
equals, hashCode, hasNext, next, remove, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods 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:
getDelegatein classWrapperCollections.AbstractWrapperIterator<E>- Returns:
- the wrapped Iterator
-
add
- Specified by:
addin interfaceListIterator<E>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<E>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<E>
-
previous
- Specified by:
previousin interfaceListIterator<E>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<E>
-
set
- Specified by:
setin interfaceListIterator<E>
-