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:
Iterator<T>, ListIterator<T>
A
ListIterator that reverses the direction of all operations of a delegate ListIterator.-
Field Summary
Fields inherited from class FilterListIterator
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()booleannext()intThrows anUnsupportedOperationException.previous()intThrows anUnsupportedOperationException.Methods inherited from class FilterListIterator
add, remove, setMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
ReverseListIterator
-
-
Method Details
-
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
- Specified by:
nextin interfaceIterator<T>- Specified by:
nextin interfaceListIterator<T>- Overrides:
nextin classFilterListIterator<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>
-