|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ds.fw.types.collections.FwListIterator
|
+--com.ds.fw.types.collections.FwListCursorIterator
This class implements the FwCursorIteratorIF interface. Unlike the java iterator interface the next and previous methods do *NOT* throw an exception. If there is no element to return for next() or previous() then the methods return null.
| Field Summary |
| Fields inherited from class com.ds.fw.types.collections.FwListIterator |
_index, _lastReturned, _list |
| Constructor Summary | |
FwListCursorIterator()
Constructor. |
|
| Method Summary | |
com.ds.fw.types.collections.FwCursorIteratorMarkIF |
getMark()
Gets a marker for the current list. |
java.lang.Object |
next()
Returns the next element of the list or null, if the array bound is reached. |
com.ds.fw.types.collections.FwListIF |
next(int n)
Returns a sublist with next n elements of the list. |
java.lang.Object |
previous()
Returns the previous element of the list or null, if the array bound is reached. |
com.ds.fw.types.collections.FwListIF |
previous(int n)
Returns a sublist with previous n elements of the list. |
void |
setMark(com.ds.fw.types.collections.FwCursorIteratorMarkIF e)
Sets the list settings to these of the given marker. |
| Methods inherited from class com.ds.fw.types.collections.FwListIterator |
add, getList, gotoEnd, gotoStart, hasNext, hasPrevious, nextIndex, previousIndex, remove, set, setList |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ds.fw.types.collections.FwCursorIteratorIF |
gotoEnd, gotoStart, hasNext, hasPrevious |
| Methods inherited from interface java.util.Iterator |
remove |
| Constructor Detail |
public FwListCursorIterator()
| Method Detail |
public java.lang.Object next()
next in interface FwCursorIteratorIFnext in class FwListIteratorpublic java.lang.Object previous()
previous in interface FwCursorIteratorIFprevious in class FwListIteratorpublic com.ds.fw.types.collections.FwListIF next(int n)
next in interface FwCursorIteratorIFnext in class FwListIteratorpublic com.ds.fw.types.collections.FwListIF previous(int n)
previous in interface FwCursorIteratorIFprevious in class FwListIteratorpublic com.ds.fw.types.collections.FwCursorIteratorMarkIF getMark()
getMark in interface FwCursorIteratorIFpublic void setMark(com.ds.fw.types.collections.FwCursorIteratorMarkIF e)
setMark in interface FwCursorIteratorIFe - a marker object interface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||