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
Constructors Modifier Constructor Description protected
AbstractWrapperListIterator(ListIterator<E> iter)
Create an AbstractWrapperListIterator which delegates to the specified ListIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(E o)
protected ListIterator<E>
getDelegate()
Return the Iterator to which all operations should be delegated to.boolean
hasPrevious()
int
nextIndex()
E
previous()
int
previousIndex()
void
set(E o)
-
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 Detail
-
AbstractWrapperListIterator
protected AbstractWrapperListIterator(ListIterator<E> iter)
Create an AbstractWrapperListIterator which delegates to the specified ListIterator.- Parameters:
iter
- the ListIterator to delegate all calls to
-
-
Method Detail
-
getDelegate
protected ListIterator<E> getDelegate()
Return the Iterator to which all operations should be delegated to.- Overrides:
getDelegate
in classWrapperCollections.AbstractWrapperIterator<E>
- Returns:
- the wrapped Iterator
-
add
public void add(E o)
- 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
public E previous()
- Specified by:
previous
in interfaceListIterator<E>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<E>
-
set
public void set(E o)
- Specified by:
set
in interfaceListIterator<E>
-
-