Interface Cursor
-
- All Known Implementing Classes:
ContentCursor,SpaceCursor
public interface CursorAn interface which could be used to generate cursor for the next/previous pagination request- Since:
- 7.18
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CursorTypegetCursorType()booleanisEmpty()Indicates that cursor is empty (first cursor in forward direction)booleanisReverse()Indicates that records should be sorted in backward direction when this cursor is used
-
-
-
Method Detail
-
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
-
-