public interface DpDataFindNextIterator extends Iterator<Object>
findNext
functionality.
This class is expected to be the return value of the
DP Data Provider method
DpDataCallback.iterator(DpTrans, ConfObject[], ConfFindNextType,
ConfKey)
If this overlaid iterator method is implemented this implies that the
data provider is capable of both getNext as the basic iterator as well
as findNext which is the extended method in this interface.
Iterators of this type are expected to be first called by a findNext to
position at some element in a list. The iterator will then accept subsequent
getNext calls from that initial position.
Modifier and Type | Method and Description |
---|---|
Object |
findNext(DpTrans trans,
ConfObject[] kp,
ConfFindNextType type,
ConfKey key)
This method is called by Dp when a FIND_NEXT or a FIND_NEXT_OBJECT call
is issued.
|
forEachRemaining, hasNext, next, remove
Object findNext(DpTrans trans, ConfObject[] kp, ConfFindNextType type, ConfKey key)
DpDataCallback.getIteratorKey(DpTrans, ConfObject[], Object)
or DpDataCallback.getIteratorObject(DpTrans, ConfObject[],
Object)
methods before the element returned.trans
- current DpTrans objectkp
- keypath for the iteratortype
- ConfFindNextType enum indicating this or next elementkey
- value for the searched element