Class FilterListIterator
java.lang.Object
org.codehaus.janino.util.iterator.FilterListIterator
- All Implemented Interfaces:
Iterator
,ListIterator
- Direct Known Subclasses:
ReverseListIterator
An
ListIterator
that retrieves its elements from a delegate
ListIterator
. The default implementation simply passes
all method invocations to the delegate.-
Field Details
-
delegate
-
-
Constructor Details
-
FilterListIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator
- Specified by:
hasNext
in interfaceListIterator
-
next
Callsdelegate
.ListIterator.next()
- Specified by:
next
in interfaceIterator
- Specified by:
next
in interfaceListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator
-
previous
- Specified by:
previous
in interfaceListIterator
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator
-
remove
public void remove()- Specified by:
remove
in interfaceIterator
- Specified by:
remove
in interfaceListIterator
-
set
- Specified by:
set
in interfaceListIterator
-
add
- Specified by:
add
in interfaceListIterator
-