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:
java.util.Iterator<T>,java.util.ListIterator<T>
- Direct Known Subclasses:
ReverseListIterator
public abstract class FilterListIterator<T> extends java.lang.Object implements java.util.ListIterator<T>AnListIteratorthat retrieves its elements from a delegateListIterator. The default implementation simply passes all method invocations to the delegate.
-
-
Constructor Summary
Constructors Constructor Description FilterListIterator(java.util.ListIterator<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T o)Callsdelegate.ListIterator.add(java.lang.Object)booleanhasNext()Callsdelegate.ListIterator.hasNext()booleanhasPrevious()Callsdelegate.ListIterator.hasPrevious()Tnext()Callsdelegate.ListIterator.next()intnextIndex()Callsdelegate.ListIterator.nextIndex()Tprevious()Callsdelegate.ListIterator.previous()intpreviousIndex()Callsdelegate.ListIterator.previousIndex()voidremove()Callsdelegate.ListIterator.remove()voidset(T o)Callsdelegate.ListIterator.set(java.lang.Object)
-
-
-
Field Detail
-
delegate
protected final java.util.ListIterator<T> delegate
- See Also:
FilterListIterator
-
-
Constructor Detail
-
FilterListIterator
public FilterListIterator(java.util.ListIterator<T> delegate)
-
-
Method Detail
-
hasNext
public boolean hasNext()
Callsdelegate.ListIterator.hasNext()
-
hasPrevious
public boolean hasPrevious()
Callsdelegate.ListIterator.hasPrevious()- Specified by:
hasPreviousin interfacejava.util.ListIterator<T>
-
previous
public T previous()
Callsdelegate.ListIterator.previous()- Specified by:
previousin interfacejava.util.ListIterator<T>
-
nextIndex
public int nextIndex()
Callsdelegate.ListIterator.nextIndex()- Specified by:
nextIndexin interfacejava.util.ListIterator<T>
-
previousIndex
public int previousIndex()
Callsdelegate.ListIterator.previousIndex()- Specified by:
previousIndexin interfacejava.util.ListIterator<T>
-
remove
public void remove()
Callsdelegate.ListIterator.remove()
-
set
public void set(@Nullable T o)
Callsdelegate.ListIterator.set(java.lang.Object)- Specified by:
setin interfacejava.util.ListIterator<T>
-
-