Class Cursor.CursorId
java.lang.Object
org.springframework.data.redis.core.Cursor.CursorId
Value class representing a cursor identifier.
- Since:
- 3.2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract StringinthashCode()static Cursor.CursorIdinitial()Creates a new initialCursor.CursorId.booleanReturns whether the current cursor identifier represent an initial cursor identifier to indicate an initial/finished cursor state.static booleanReturns whether the givencursorIdrepresent an initial cursor identifier to indicate an initial/finished cursor state.static Cursor.CursorIdof(long cursorId) Creates aCursor.CursorIdfrom the givencursorId.static Cursor.CursorIdCreates aCursor.CursorIdfrom the givencursorId.toString()
-
Constructor Details
-
CursorId
public CursorId()
-
-
Method Details
-
initial
Creates a new initialCursor.CursorId.- Returns:
- an initial
Cursor.CursorId.
-
of
Creates aCursor.CursorIdfrom the givencursorId.- Parameters:
cursorId- the provided cursor identifier.- Returns:
- the provided cursor Id.
-
of
Creates aCursor.CursorIdfrom the givencursorId.- Parameters:
cursorId- the provided cursor identifier.- Returns:
- the provided cursor Id.
-
isInitial
Returns whether the givencursorIdrepresent an initial cursor identifier to indicate an initial/finished cursor state.- Parameters:
cursorId- the cursor identifier to inspect.- Returns:
trueif 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:
trueif the cursorId represents an initial/finished state.
-
getCursorId
- Returns:
- the raw cursor Id.
-
hashCode
public int hashCode() -
equals
-
toString
-