com.ds.fw.types.collections
Class FwListCursorIteratorMark

java.lang.Object
  |
  +--com.ds.fw.types.collections.FwListCursorIteratorMark
All Implemented Interfaces:
FwCursorIteratorMarkIF

public class FwListCursorIteratorMark
extends java.lang.Object
implements FwCursorIteratorMarkIF

This class represents a list marker. When it is created a current list position is saved and then if needed it can be restored.


Field Summary
 int _index
          This member is a list position.
 int _lastReturned
          This member is an index of the last returned object of the list.
 
Constructor Summary
FwListCursorIteratorMark(com.ds.fw.types.collections.FwListCursorIterator i)
          Constructor.
 
Method Summary
 void applyTo(java.lang.Object e)
          Applayes the marker settings to the given object e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_index

public int _index
This member is a list position.


_lastReturned

public int _lastReturned
This member is an index of the last returned object of the list.

Constructor Detail

FwListCursorIteratorMark

public FwListCursorIteratorMark(com.ds.fw.types.collections.FwListCursorIterator i)
Constructor. Initializes the marker with the current list values.

Parameters:
i - an iterator of the list to be set the mark to
Method Detail

applyTo

public void applyTo(java.lang.Object e)
Applayes the marker settings to the given object e. The object e has to implement the FwListCursorIterator interface or a runtime exception will be raised.

Specified by:
applyTo in interface FwCursorIteratorMarkIF
Parameters:
e - the object marker settings will be applayed to