Package com.fauna.query
Class AfterToken
- java.lang.Object
-
- com.fauna.query.AfterToken
-
public class AfterToken extends java.lang.Object
Represents an `after` token used for Set pagination.
-
-
Constructor Summary
Constructors Constructor Description AfterToken(java.lang.String token)
Constructs anAfterToken
with the specified token.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<AfterToken>
fromString(java.lang.String token)
Creates anAfterToken
instance from the specified token string.java.lang.String
getToken()
Returns the token stored in thisAfterToken
instance.
-
-
-
Method Detail
-
getToken
public java.lang.String getToken()
Returns the token stored in thisAfterToken
instance.- Returns:
- the token as a
String
.
-
fromString
public static java.util.Optional<AfterToken> fromString(java.lang.String token)
Creates anAfterToken
instance from the specified token string. If the provided token isnull
, an emptyOptional
is returned.- Parameters:
token
- the token string to convert into anAfterToken
.- Returns:
- an
Optional
containing anAfterToken
if the token is non-null, or an emptyOptional
if it is null.
-
-