de.intarsys.tools.collection
Class ReverseListIterator<T>
java.lang.Object
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.
ReverseListIterator
public ReverseListIterator(List<T> list)
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>
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.