Interface Cursor
- All Known Implementing Classes:
ContentCursor
,SpaceCursor
public interface Cursor
An interface which could be used to generate cursor for the next/previous pagination request
- Since:
- 7.18
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEmpty()
Indicates that cursor is empty (first cursor in forward direction)boolean
Indicates that records should be sorted in backward direction when this cursor is used
-
Method Details
-
isReverse
boolean isReverse()Indicates that records should be sorted in backward direction when this cursor is used- Returns:
- true if this cursor is previous cursor (records go in backward direction)
-
isEmpty
boolean isEmpty()Indicates that cursor is empty (first cursor in forward direction)- Returns:
- true if cursor is empty
-
getCursorType
CursorType getCursorType()- Returns:
- Type of the cursor
-