Class ContentCursor

java.lang.Object
com.atlassian.confluence.api.model.pagination.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 Details

    • EMPTY_CURSOR

      public static final ContentCursor EMPTY_CURSOR
    • EMPTY_CURSOR_PREV

      public static final ContentCursor EMPTY_CURSOR_PREV
  • Method Details

    • createCursor

      public static ContentCursor createCursor(boolean isReverse, long contentId)
    • getCursorType

      public CursorType getCursorType()
      Specified by:
      getCursorType in interface Cursor
      Returns:
      Type of the cursor
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • valueOf

      public static ContentCursor valueOf(@NonNull String cursorToken)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object