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>
AListIterator
that 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 boolean
hasNext()
CallsFilterListIterator.delegate
.ListIterator.hasPrevious()
boolean
hasPrevious()
CallsFilterListIterator.delegate
.ListIterator.hasNext()
T
next()
CallsFilterListIterator.delegate
.ListIterator.previous()
int
nextIndex()
Throws anUnsupportedOperationException
.T
previous()
CallsFilterListIterator.delegate
.ListIterator.next()
int
previousIndex()
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:
hasNext
in interfacejava.util.Iterator<T>
- Specified by:
hasNext
in interfacejava.util.ListIterator<T>
- Overrides:
hasNext
in classFilterListIterator<T>
-
hasPrevious
public boolean hasPrevious()
CallsFilterListIterator.delegate
.ListIterator.hasNext()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<T>
- Overrides:
hasPrevious
in classFilterListIterator<T>
-
next
public T next()
CallsFilterListIterator.delegate
.ListIterator.previous()
- Specified by:
next
in interfacejava.util.Iterator<T>
- Specified by:
next
in interfacejava.util.ListIterator<T>
- Overrides:
next
in classFilterListIterator<T>
-
previous
public T previous()
CallsFilterListIterator.delegate
.ListIterator.next()
- Specified by:
previous
in interfacejava.util.ListIterator<T>
- Overrides:
previous
in classFilterListIterator<T>
-
nextIndex
public int nextIndex()
Throws anUnsupportedOperationException
.- Specified by:
nextIndex
in interfacejava.util.ListIterator<T>
- Overrides:
nextIndex
in classFilterListIterator<T>
-
previousIndex
public int previousIndex()
Throws anUnsupportedOperationException
.- Specified by:
previousIndex
in interfacejava.util.ListIterator<T>
- Overrides:
previousIndex
in classFilterListIterator<T>
-
-