org.codehaus.janino.util.iterator

Class ReverseListIterator

public class ReverseListIterator extends FilterListIterator

A java.util.ListIterator that reverses the direction of all operations of a delegate java.util.ListIterator.
Constructor Summary
ReverseListIterator(ListIterator delegate)
Method Summary
booleanhasNext()
booleanhasPrevious()
Objectnext()
intnextIndex()
Throws an UnsupportedOperationException.
Objectprevious()
intpreviousIndex()
Throws an UnsupportedOperationException.

Constructor Detail

ReverseListIterator

public ReverseListIterator(ListIterator delegate)

Method Detail

hasNext

public boolean hasNext()
Calls ReverseListIterator.java.util.ListIterator#hasPrevious()

hasPrevious

public boolean hasPrevious()
Calls ReverseListIterator.java.util.ListIterator#hasNext()

next

public Object next()
Calls ReverseListIterator.java.util.ListIterator#previous()

nextIndex

public int nextIndex()
Throws an UnsupportedOperationException.

previous

public Object previous()
Calls ReverseListIterator.java.util.ListIterator#next()

previousIndex

public int previousIndex()
Throws an UnsupportedOperationException.