Class ReverseListIterator
- java.lang.Object
-
- org.codehaus.janino.util.iterator.FilterListIterator
-
- org.codehaus.janino.util.iterator.ReverseListIterator
-
- All Implemented Interfaces:
java.util.Iterator
,java.util.ListIterator
public class ReverseListIterator extends FilterListIterator
AListIterator
that 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(java.util.ListIterator delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
CallsFilterListIterator.delegate
.ListIterator.hasPrevious()
boolean
hasPrevious()
CallsFilterListIterator.delegate
.ListIterator.hasNext()
java.lang.Object
next()
CallsFilterListIterator.delegate
.ListIterator.previous()
int
nextIndex()
Throws anUnsupportedOperationException
.java.lang.Object
previous()
CallsFilterListIterator.delegate
.ListIterator.next()
int
previousIndex()
Throws anUnsupportedOperationException
.-
Methods inherited from class org.codehaus.janino.util.iterator.FilterListIterator
add, remove, set
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
CallsFilterListIterator.delegate
.ListIterator.hasPrevious()
- Specified by:
hasNext
in interfacejava.util.Iterator
- Specified by:
hasNext
in interfacejava.util.ListIterator
- Overrides:
hasNext
in classFilterListIterator
-
hasPrevious
public boolean hasPrevious()
CallsFilterListIterator.delegate
.ListIterator.hasNext()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator
- Overrides:
hasPrevious
in classFilterListIterator
-
next
public java.lang.Object next()
CallsFilterListIterator.delegate
.ListIterator.previous()
- Specified by:
next
in interfacejava.util.Iterator
- Specified by:
next
in interfacejava.util.ListIterator
- Overrides:
next
in classFilterListIterator
-
previous
public java.lang.Object previous()
CallsFilterListIterator.delegate
.ListIterator.next()
- Specified by:
previous
in interfacejava.util.ListIterator
- Overrides:
previous
in classFilterListIterator
-
nextIndex
public int nextIndex()
Throws anUnsupportedOperationException
.- Specified by:
nextIndex
in interfacejava.util.ListIterator
- Overrides:
nextIndex
in classFilterListIterator
-
previousIndex
public int previousIndex()
Throws anUnsupportedOperationException
.- Specified by:
previousIndex
in interfacejava.util.ListIterator
- Overrides:
previousIndex
in classFilterListIterator
-
-