Class ReverseListIterator<T>
- java.lang.Object
-
- org.codehaus.janino.util.iterator.FilterListIterator<T>
-
- org.codehaus.janino.util.iterator.ReverseListIterator<T>
-
- Type Parameters:
T- The element type of the list iterator
- All Implemented Interfaces:
Iterator<T>,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.janino.util.iterator.FilterListIterator
delegate
-
-
Constructor Summary
Constructors Constructor Description ReverseListIterator(ListIterator<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()booleanhasPrevious()Tnext()intnextIndex()Throws anUnsupportedOperationException.Tprevious()intpreviousIndex()Throws anUnsupportedOperationException.-
Methods inherited from class org.codehaus.janino.util.iterator.FilterListIterator
add, remove, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ReverseListIterator
public ReverseListIterator(ListIterator<T> delegate)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<T>- Specified by:
hasNextin interfaceListIterator<T>- Overrides:
hasNextin classFilterListIterator<T>
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator<T>- Overrides:
hasPreviousin classFilterListIterator<T>
-
next
public T next()
- Specified by:
nextin interfaceIterator<T>- Specified by:
nextin interfaceListIterator<T>- Overrides:
nextin classFilterListIterator<T>
-
previous
public T previous()
- Specified by:
previousin interfaceListIterator<T>- Overrides:
previousin classFilterListIterator<T>
-
nextIndex
public int nextIndex()
Throws anUnsupportedOperationException.- Specified by:
nextIndexin interfaceListIterator<T>- Overrides:
nextIndexin classFilterListIterator<T>
-
previousIndex
public int previousIndex()
Throws anUnsupportedOperationException.- Specified by:
previousIndexin interfaceListIterator<T>- Overrides:
previousIndexin classFilterListIterator<T>
-
-