Iterates backwards through a List, starting with the last element and continuing to the first. This is useful for looping around a list in reverse order without needing to actually reverse the list.
The first call to next()
will return the last element from the list, and so on. The hasNext()
method works in concert with the next()
method as expected. However, the nextIndex()
method returns the correct index in the list, thus it starts high and reduces as the iteration continues. The previous methods work similarly.
@author Serge Knystautas
@author Stephen Colebourne
@since Commons Collections 3.2
@version $Revision: $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $