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.Object at()
      Gets the current element in the collection.
      java.lang.Object previous()
      Gets the current element in the collection and repositions the iterator to the previous element.
      boolean setToFirst()
      Sets to the first element in the collection.
      boolean setToLast()
      Sets to the last element in the collection.
      boolean setToNext()
      Sets to the next element in the collection.
      boolean setToPrevious()
      Sets to the previous element in the collection.
    • Method Detail

      • at

        java.lang.Object at()
                     throws DKUsageError
        Gets 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 DKUsageError
        Gets 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.
Copyright © 2024 IBM Corporation

Copyright © 2024 IBM Corporation. All rights reserved.