Class SpaceCursor

  • All Implemented Interfaces:
    Cursor

    public class SpaceCursor
    extends Object
    implements Cursor
    A class which could be used to generate cursor for the next/previous space pagination request or get cursor from space
    Since:
    7.18
    • Field Detail

      • EMPTY_CURSOR

        public static final SpaceCursor EMPTY_CURSOR
    • Method Detail

      • createCursor

        public static SpaceCursor createCursor​(boolean isReverse,
                                               Long spaceId)
      • isReverse

        public boolean isReverse()
        Description copied from interface: Cursor
        Indicates that records should be sorted in backward direction when this cursor is used
        Specified by:
        isReverse in interface Cursor
        Returns:
        true if this cursor is previous cursor (records go in backward direction)
      • getSpaceId

        public Long getSpaceId()
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: Cursor
        Indicates that cursor is empty (first cursor in forward direction)
        Specified by:
        isEmpty in interface Cursor
        Returns:
        true if cursor is empty
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object