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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract String
int
hashCode()
static Cursor.CursorId
initial()
Creates a new initialCursor.CursorId
.boolean
Returns whether the current cursor identifier represent an initial cursor identifier to indicate an initial/finished cursor state.static boolean
Returns whether the givencursorId
represent an initial cursor identifier to indicate an initial/finished cursor state.static Cursor.CursorId
of
(long cursorId) Creates aCursor.CursorId
from the givencursorId
.static Cursor.CursorId
Creates aCursor.CursorId
from the givencursorId
.toString()
-
Constructor Details
-
CursorId
public CursorId()
-
-
Method Details
-
initial
Creates a new initialCursor.CursorId
.- Returns:
- an initial
Cursor.CursorId
.
-
of
Creates aCursor.CursorId
from the givencursorId
.- Parameters:
cursorId
- the provided cursor identifier.- Returns:
- the provided cursor Id.
-
of
Creates aCursor.CursorId
from the givencursorId
.- Parameters:
cursorId
- the provided cursor identifier.- Returns:
- the provided cursor Id.
-
isInitial
Returns whether the givencursorId
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
- Returns:
- the raw cursor Id.
-
hashCode
public int hashCode() -
equals
-
toString
-