org.codehaus.janino.util.iterator
Class ReverseListIterator

java.lang.Object
  extended by org.codehaus.janino.util.iterator.FilterListIterator
      extended by org.codehaus.janino.util.iterator.ReverseListIterator
All Implemented Interfaces:
java.util.Iterator, java.util.ListIterator

public class ReverseListIterator
extends FilterListIterator

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
ReverseListIterator(java.util.ListIterator delegate)
           
 
Method Summary
 boolean hasNext()
          Calls FilterListIterator.delegate.ListIterator.hasPrevious()
 boolean hasPrevious()
          Calls FilterListIterator.delegate.ListIterator.hasNext()
 java.lang.Object next()
          Calls FilterListIterator.delegate.ListIterator.previous()
 int nextIndex()
          Throws an UnsupportedOperationException.
 java.lang.Object previous()
          Calls FilterListIterator.delegate.ListIterator.next()
 int previousIndex()
          Throws an UnsupportedOperationException.
 
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
 

Constructor Detail

ReverseListIterator

public ReverseListIterator(java.util.ListIterator delegate)
Method Detail

hasNext

public boolean hasNext()
Calls FilterListIterator.delegate.ListIterator.hasPrevious()

Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface java.util.ListIterator
Overrides:
hasNext in class FilterListIterator

hasPrevious

public boolean hasPrevious()
Calls FilterListIterator.delegate.ListIterator.hasNext()

Specified by:
hasPrevious in interface java.util.ListIterator
Overrides:
hasPrevious in class FilterListIterator

next

public java.lang.Object next()
Calls FilterListIterator.delegate.ListIterator.previous()

Specified by:
next in interface java.util.Iterator
Specified by:
next in interface java.util.ListIterator
Overrides:
next in class FilterListIterator

previous

public java.lang.Object previous()
Calls FilterListIterator.delegate.ListIterator.next()

Specified by:
previous in interface java.util.ListIterator
Overrides:
previous in class FilterListIterator

nextIndex

public int nextIndex()
Throws an UnsupportedOperationException.

Specified by:
nextIndex in interface java.util.ListIterator
Overrides:
nextIndex in class FilterListIterator

previousIndex

public int previousIndex()
Throws an UnsupportedOperationException.

Specified by:
previousIndex in interface java.util.ListIterator
Overrides:
previousIndex in class FilterListIterator


Copyright © 2001-2011. All Rights Reserved.