Class Cursor.CursorId

java.lang.Object
org.springframework.data.redis.core.Cursor.CursorId
Enclosing interface:
Cursor<T>

public abstract static class Cursor.CursorId extends Object
Value class representing a cursor identifier.
Since:
3.2.1
  • Constructor Details

    • CursorId

      public CursorId()
  • Method Details

    • initial

      public static Cursor.CursorId initial()
      Creates a new initial Cursor.CursorId.
      Returns:
      an initial Cursor.CursorId.
    • of

      public static Cursor.CursorId of(String cursorId)
      Creates a Cursor.CursorId from the given cursorId.
      Parameters:
      cursorId - the provided cursor identifier.
      Returns:
      the provided cursor Id.
    • of

      public static Cursor.CursorId of(long cursorId)
      Creates a Cursor.CursorId from the given cursorId.
      Parameters:
      cursorId - the provided cursor identifier.
      Returns:
      the provided cursor Id.
    • isInitial

      public static boolean isInitial(String cursorId)
      Returns whether the given cursorId represent an initial cursor identifier to indicate an initial/finished cursor state.
      Parameters:
      cursorId - the cursor identifier to inspect.
      Returns:
      true if the cursorId represents an initial/finished state.
    • isInitial

      public boolean isInitial()
      Returns whether the current cursor identifier represent an initial cursor identifier to indicate an initial/finished cursor state.
      Returns:
      true if the cursorId represents an initial/finished state.
    • getCursorId

      public abstract String getCursorId()
      Returns:
      the raw cursor Id.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object