Interface IDfSearchable


public interface IDfSearchable
This interface provides operations that can be used by a search routine. The search routine might require information about the number of keys present and the value of a key at a particular index. Objects that implement this interface provide the necessary details regarding key count and the value of key at a specified index.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getKeyAt(int index)
    Returns the integer element at the specified index.
    int
    Returns a count of the number of keys present.
    boolean
    Returns true if the keys are in sorted order; otherwise false.
  • Method Details

    • getKeyCount

      int getKeyCount()
      Returns a count of the number of keys present.
      Returns:
      a count of the number of keys present.
    • getKeyAt

      double getKeyAt(int index) throws DfException
      Returns the integer element at the specified index.
      Returns:
      the integer element at the specified index.
      Throws:
      DfException
    • isInSortedOrder

      boolean isInSortedOrder()
      Returns true if the keys are in sorted order; otherwise false.
      Returns:
      true if the keys are in sorted order; otherwise false.