|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.types.collections.FwReverseIterator
I am used to iterate through a list in reverse order. I do not implement the remove() method or any of the "fail-fast" functionality of the standard ArrayList.iterator().
| Field Summary | |
int |
_index
The current index of the _list. |
java.util.List |
_list
A List object handle, initialized through the creation process. |
| Constructor Summary | |
FwReverseIterator(java.util.List v)
Initializes the class members. |
|
| Method Summary | |
boolean |
hasNext()
Checks if the beginning of the list is reached. |
java.lang.Object |
next()
Returns the next element in the list. |
void |
remove()
Not implemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.List _list
public int _index
| Constructor Detail |
public FwReverseIterator(java.util.List v)
v - a List object| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||