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 TypeMethodDescriptionboolean
hasNext()
boolean
next()
int
Throws anUnsupportedOperationException
.previous()
int
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 Details
-
ReverseListIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator
- Specified by:
hasNext
in interfaceListIterator
- Overrides:
hasNext
in classFilterListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator
- Overrides:
hasPrevious
in classFilterListIterator
-
next
- Specified by:
next
in interfaceIterator
- Specified by:
next
in interfaceListIterator
- Overrides:
next
in classFilterListIterator
-
previous
- Specified by:
previous
in interfaceListIterator
- Overrides:
previous
in classFilterListIterator
-
nextIndex
public int nextIndex()Throws anUnsupportedOperationException
.- Specified by:
nextIndex
in interfaceListIterator
- Overrides:
nextIndex
in classFilterListIterator
-
previousIndex
public int previousIndex()Throws anUnsupportedOperationException
.- Specified by:
previousIndex
in interfaceListIterator
- Overrides:
previousIndex
in classFilterListIterator
-