Class FilterListIterator<T>
- java.lang.Object
-
- org.codehaus.janino.util.iterator.FilterListIterator<T>
-
- Type Parameters:
T
- The element type of the list iterator
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
- Direct Known Subclasses:
ReverseListIterator
public abstract class FilterListIterator<T> extends Object implements ListIterator<T>
AnListIterator
that retrieves its elements from a delegateListIterator
. The default implementation simply passes all method invocations to the delegate.
-
-
Field Summary
Fields Modifier and Type Field Description protected ListIterator<T>
delegate
-
Constructor Summary
Constructors Constructor Description FilterListIterator(ListIterator<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T o)
boolean
hasNext()
boolean
hasPrevious()
T
next()
Callsdelegate
.ListIterator.next()
int
nextIndex()
T
previous()
int
previousIndex()
void
remove()
void
set(T o)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
delegate
protected final ListIterator<T> delegate
- See Also:
FilterListIterator
-
-
Constructor Detail
-
FilterListIterator
public FilterListIterator(ListIterator<T> delegate)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public T next()
Callsdelegate
.ListIterator.next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<T>
-
previous
public T previous()
- Specified by:
previous
in interfaceListIterator<T>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<T>
-
remove
public void remove()
-
set
public void set(T o)
- Specified by:
set
in interfaceListIterator<T>
-
add
public void add(T o)
- Specified by:
add
in interfaceListIterator<T>
-
-