Package jakarta.data.page
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 TypeMethodDescriptionboolean
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
hashCode()
Returns a hash code based on the keyset values.int
size()
Returns the number of values in the keyset.toString()
String representation of the keyset cursor, including the number of key values in the cursor but not the values themselves.
-
Method Details
-
equals
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. -
getKeysetElement
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 thesize()
.
-
hashCode
int hashCode()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.
-