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:
hasNextin interfaceIterator- Specified by:
hasNextin interfaceListIterator
-
next
Callsdelegate.ListIterator.next()- Specified by:
nextin interfaceIterator- Specified by:
nextin interfaceListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator
-
previous
- Specified by:
previousin interfaceListIterator
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator
-
remove
public void remove()- Specified by:
removein interfaceIterator- Specified by:
removein interfaceListIterator
-
set
- Specified by:
setin interfaceListIterator
-
add
- Specified by:
addin interfaceListIterator
-