|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 List |
list
The list to get elements from |
Constructor Summary | |
ReverseListIterator(List list)
Construct a ReverseListIterator for the given list. |
Method Summary | |
boolean |
hasNext()
Check if there are more elements. |
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 List list
protected int current
Constructor Detail |
public ReverseListIterator(List list)
list
- List to iterate over.Method Detail |
public boolean hasNext()
public Object next()
NoSuchElementException
public void remove()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |