intarsys runtime library

de.intarsys.tools.collection
Class ReverseListIterator<T>

java.lang.Object
  extended by de.intarsys.tools.collection.ReverseListIterator<T>
All Implemented Interfaces:
Iterable<T>, Iterator<T>

public class ReverseListIterator<T>
extends Object
implements Iterator<T>, Iterable<T>

This iterator enumerates the elements of a list in reverse order.


Constructor Summary
ReverseListIterator(List<T> list)
           
 
Method Summary
 boolean hasNext()
           
 Iterator<T> iterator()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReverseListIterator

public ReverseListIterator(List<T> list)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.