org.apache.wicket.util.collections
Class ReverseListIterator<E>
java.lang.Object
org.apache.wicket.util.collections.ReverseListIterator<E>
- Type Parameters:
E
-
- All Implemented Interfaces:
- Iterable<E>, Iterator<E>
public class ReverseListIterator<E>
- extends Object
- implements Iterator<E>, Iterable<E>
An iterator over List
which goes from the end to the start
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseListIterator
public ReverseListIterator(List<E> list)
- Construct.
- Parameters:
list
- the list which will be iterated in reverse order
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<E>
next
public E next()
- Specified by:
next
in interface Iterator<E>
remove
public void remove()
- Specified by:
remove
in interface Iterator<E>
iterator
public Iterator<E> iterator()
- Specified by:
iterator
in interface Iterable<E>
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.