|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.runtime.ReverseListIterator<T>
public class ReverseListIterator<T>
A reverse iterator over a list. Utilizes the ListIterator
obtained from the provided List and converts it to an
Iterator that efficiently traverses the List in
reverse. The fail-fast semantics of this iterator are the same as the
semantics of the underlying ListIterator.
| Constructor Summary | |
|---|---|
ReverseListIterator(java.util.List<T> list)
Constructs a new ReverseListIterator for the provided list. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReverseListIterator(java.util.List<T> list)
ReverseListIterator for the provided list.
list - the list to iterate over in reverse| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T next()
next in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||