org.apache.wicket.util.collections
Class ReverseListIterator<E>

java.lang.Object
  extended by 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


Constructor Summary
ReverseListIterator(List<E> list)
          Construct.
 
Method Summary
 boolean hasNext()
           
 Iterator<E> iterator()
           
 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(List<E> list)
Construct.

Parameters:
list - the list which will be iterated in reverse order
Method Detail

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.