Class FilterListIterator<T>
java.lang.Object
org.codehaus.commons.compiler.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
An
ListIterator that retrieves its elements from a delegate ListIterator. The
default implementation simply passes all method invocations to the delegate.-
Field Details
-
delegate
- See Also:
-
-
Constructor Details
-
FilterListIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
Callsdelegate.ListIterator.next() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<T>
-
previous
- Specified by:
previousin interfaceListIterator<T>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<T>
-
remove
public void remove() -
set
- Specified by:
setin interfaceListIterator<T>
-
add
- Specified by:
addin interfaceListIterator<T>
-