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.
@since 3.2
@version $Id: ReverseListIterator.java 1469004 2013-04-17 17:37:03Z tn $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|