|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.ReverseListIterator
public class ReverseListIterator
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
.
Field Summary | |
---|---|
private java.util.ListIterator |
delegate
|
Constructor Summary | |
---|---|
ReverseListIterator(java.util.List list)
Constructs a new ReverseListIterator for the provided list. |
Method Summary | |
---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ListIterator delegate
Constructor Detail |
---|
public ReverseListIterator(java.util.List list)
ReverseListIterator
for the provided list.
list
- the list to iterate over in reverseMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |