orc.runtime
Class ReverseListIterator<E>

java.lang.Object
  extended by orc.runtime.ReverseListIterator<E>
All Implemented Interfaces:
java.util.Iterator<E>

public class ReverseListIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>

In Java 6 we can replace this with the builtin decreasingIterator.

Author:
quark

Constructor Summary
ReverseListIterator(java.util.List<E> list)
           
 
Method Summary
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
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.List<E> list)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<E>

next

public E next()
Specified by:
next in interface java.util.Iterator<E>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<E>