|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended bydiva.util.IteratorAdapter extended bydiva.util.ReverseIterator
A reverse-order iterator over a List.
| Constructor Summary | |
ReverseIterator(java.util.List list)
Construct a reverse iterator on the given list. |
|
| Method Summary | |
boolean |
hasNext()
Test if there are more elements |
java.lang.Object |
next()
Return the next element. |
| Methods inherited from class diva.util.IteratorAdapter |
remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReverseIterator(java.util.List list)
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.IteratorhasNext in class IteratorAdapterpublic java.lang.Object next()
next in interface java.util.Iteratornext in class IteratorAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||