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:
hasPrevious
in interfaceListIterator<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
- Specified by:
set
in interfaceListIterator<T>
-
add
- Specified by:
add
in interfaceListIterator<T>
-