Class ReverseListIterator<T>
- java.lang.Object
-
- org.codehaus.commons.compiler.util.iterator.FilterListIterator<T>
-
- org.codehaus.commons.compiler.util.iterator.ReverseListIterator<T>
-
- Type Parameters:
T- The element type of the list iterator
- All Implemented Interfaces:
java.util.Iterator<T>,java.util.ListIterator<T>
public class ReverseListIterator<T> extends FilterListIterator<T>
AListIteratorthat reverses the direction of all operations of a delegateListIterator.
-
-
Field Summary
-
Fields inherited from class org.codehaus.commons.compiler.util.iterator.FilterListIterator
delegate
-
-
Constructor Summary
Constructors Constructor Description ReverseListIterator(java.util.ListIterator<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()CallsFilterListIterator.delegate.ListIterator.hasPrevious()booleanhasPrevious()CallsFilterListIterator.delegate.ListIterator.hasNext()Tnext()CallsFilterListIterator.delegate.ListIterator.previous()intnextIndex()Throws anUnsupportedOperationException.Tprevious()CallsFilterListIterator.delegate.ListIterator.next()intpreviousIndex()Throws anUnsupportedOperationException.-
Methods inherited from class org.codehaus.commons.compiler.util.iterator.FilterListIterator
add, remove, set
-
-
-
-
Constructor Detail
-
ReverseListIterator
public ReverseListIterator(java.util.ListIterator<T> delegate)
-
-
Method Detail
-
hasNext
public boolean hasNext()
CallsFilterListIterator.delegate.ListIterator.hasPrevious()- Specified by:
hasNextin interfacejava.util.Iterator<T>- Specified by:
hasNextin interfacejava.util.ListIterator<T>- Overrides:
hasNextin classFilterListIterator<T>
-
hasPrevious
public boolean hasPrevious()
CallsFilterListIterator.delegate.ListIterator.hasNext()- Specified by:
hasPreviousin interfacejava.util.ListIterator<T>- Overrides:
hasPreviousin classFilterListIterator<T>
-
next
public T next()
CallsFilterListIterator.delegate.ListIterator.previous()- Specified by:
nextin interfacejava.util.Iterator<T>- Specified by:
nextin interfacejava.util.ListIterator<T>- Overrides:
nextin classFilterListIterator<T>
-
previous
public T previous()
CallsFilterListIterator.delegate.ListIterator.next()- Specified by:
previousin interfacejava.util.ListIterator<T>- Overrides:
previousin classFilterListIterator<T>
-
nextIndex
public int nextIndex()
Throws anUnsupportedOperationException.- Specified by:
nextIndexin interfacejava.util.ListIterator<T>- Overrides:
nextIndexin classFilterListIterator<T>
-
previousIndex
public int previousIndex()
Throws anUnsupportedOperationException.- Specified by:
previousIndexin interfacejava.util.ListIterator<T>- Overrides:
previousIndexin classFilterListIterator<T>
-
-