|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.collection.ReverseListIterator
An iterator that returns elements in reverse order from a list.
| Field Summary | |
protected int |
current
The current index of the list |
protected java.util.List |
list
The list to get elements from |
| Constructor Summary | |
ReverseListIterator(java.util.List list)
Construct a ReverseListIterator for the given list. |
|
| Method Summary | |
boolean |
hasNext()
Check if there are more elements. |
java.lang.Object |
next()
Get the next element. |
void |
remove()
Remove the current element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.util.List list
protected int current
| Constructor Detail |
public ReverseListIterator(java.util.List list)
list - List to iterate over.| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementExceptionpublic void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||