com.ibm.mm.sdk.common
Interface DKSequentialIterator
-
- All Superinterfaces:
- dkIterator
- All Known Implementing Classes:
- DKSegmentedPartsIterator
public interface DKSequentialIterator extends dkIterator
A sequential iterator is bi-directional; it can go forward and backward over members of a collection that supports it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.Objectat()Gets the current element in the collection.java.lang.Objectprevious()Gets the current element in the collection and repositions the iterator to the previous element.booleansetToFirst()Sets to the first element in the collection.booleansetToLast()Sets to the last element in the collection.booleansetToNext()Sets to the next element in the collection.booleansetToPrevious()Sets to the previous element in the collection.-
Methods inherited from interface com.ibm.mm.sdk.common.dkIterator
more, next, reset
-
-
-
-
Method Detail
-
at
java.lang.Object at() throws DKUsageErrorGets the current element in the collection.- Returns:
- current element.
- Throws:
DKUsageError- if there is an error accessing the current element
-
previous
java.lang.Object previous() throws DKUsageErrorGets the current element in the collection and repositions the iterator to the previous element.- Returns:
- current element.
- Throws:
DKUsageError- if there is an error accessing the previous element
-
setToFirst
boolean setToFirst()
Sets to the first element in the collection.- Returns:
- true if position is valid.
-
setToLast
boolean setToLast()
Sets to the last element in the collection.- Returns:
- true if position is valid.
-
setToNext
boolean setToNext()
Sets to the next element in the collection.- Returns:
- true if position is valid.
-
setToPrevious
boolean setToPrevious()
Sets to the previous element in the collection.- Returns:
- true if position is valid.
-
-