Interface Pageable.Cursor

Enclosing interface:
Pageable

public static interface Pageable.Cursor
Represents keyset values, which can be a starting point for requesting a next or previous page.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether or not the keyset values of this instance are equal to those of the supplied instance.
    getKeysetElement(int index)
    Returns the keyset value at the specified position.
    int
    Returns a hash code based on the keyset values.
    int
    Returns the number of values in the keyset.
    String representation of the keyset cursor, including the number of key values in the cursor but not the values themselves.
  • Method Details

    • equals

      boolean equals(Object o)
      Returns whether or not the keyset values of this instance are equal to those of the supplied instance. Cursor implementation classes must also match to be equal.
      Overrides:
      equals in class Object
      Returns:
      true or false.
    • getKeysetElement

      Object getKeysetElement(int index)
      Returns the keyset value at the specified position.
      Parameters:
      index - position (0 is first) of the keyset value to obtain.
      Returns:
      the keyset value at the specified position.
      Throws:
      IndexOutOfBoundsException - if the index is negative or greater than or equal to the size().
    • hashCode

      int hashCode()
      Returns a hash code based on the keyset values.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code based on the keyset values.
    • size

      int size()
      Returns the number of values in the keyset.
      Returns:
      the number of values in the keyset.
    • toString

      String toString()
      String representation of the keyset cursor, including the number of key values in the cursor but not the values themselves.
      Overrides:
      toString in class Object
      Returns:
      String representation of the keyset cursor.