Class Cursor
java.lang.Object
org.apache.sling.graphql.api.pagination.Cursor
This class provides a Base64-encoded cursor which is used for paginated results, according to the specification from
https://relay.dev/graphql/connections.htm#sec-Cursor.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Cursor
- Parameters:
rawValue- the raw value from which to generate a cursor
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
fromEncodedString
Generates a new cursor based on anencodedvalue obtained via the same encoding mechanismthisclass uses.- Parameters:
encoded- the encoded value from which to generate a new cursor- Returns:
- a new cursor, if one can be generated;
nullotherwise
-
toString
-
getRawValue
-
getEncoded
-