Class ReverseListIterator
java.lang.Object
org.codehaus.janino.util.iterator.FilterListIterator
org.codehaus.janino.util.iterator.ReverseListIterator
- All Implemented Interfaces:
Iterator,ListIterator
A
ListIterator that reverses the direction of all operations
of a delegate ListIterator.-
Field Summary
Fields inherited from class org.codehaus.janino.util.iterator.FilterListIterator
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()booleannext()intThrows anUnsupportedOperationException.previous()intThrows anUnsupportedOperationException.Methods inherited from class org.codehaus.janino.util.iterator.FilterListIterator
add, remove, setMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ReverseListIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator- Specified by:
hasNextin interfaceListIterator- Overrides:
hasNextin classFilterListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator- Overrides:
hasPreviousin classFilterListIterator
-
next
- Specified by:
nextin interfaceIterator- Specified by:
nextin interfaceListIterator- Overrides:
nextin classFilterListIterator
-
previous
- Specified by:
previousin interfaceListIterator- Overrides:
previousin classFilterListIterator
-
nextIndex
public int nextIndex()Throws anUnsupportedOperationException.- Specified by:
nextIndexin interfaceListIterator- Overrides:
nextIndexin classFilterListIterator
-
previousIndex
public int previousIndex()Throws anUnsupportedOperationException.- Specified by:
previousIndexin interfaceListIterator- Overrides:
previousIndexin classFilterListIterator
-