Class ContentCursor

  • All Implemented Interfaces:
    Cursor

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

      • EMPTY_CURSOR_PREV

        public static final ContentCursor EMPTY_CURSOR_PREV
    • Method Detail

      • createCursor

        public static ContentCursor createCursor​(boolean isReverse,
                                                 long contentId)
      • 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)
      • getContentId

        public Long getContentId()
      • 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