Class TokenPageNavigator
java.lang.Object
com.sinch.sdk.core.models.pagination.PageNavigator<String>
com.sinch.sdk.core.models.pagination.TokenPageNavigator
Token Based Page Navigator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static TokenPageNavigator
valueOf
(TokenPageNavigator token) Check if token value is value and return same token is valid.static TokenPageNavigator
Create a new instance from a token.Methods inherited from class com.sinch.sdk.core.models.pagination.PageNavigator
getToken
-
Constructor Details
-
TokenPageNavigator
Create new instance- Parameters:
token
- The token value
-
-
Method Details
-
toString
- Overrides:
toString
in classcom.sinch.sdk.core.models.pagination.PageNavigator<String>
-
valueOf
Create a new instance from a token. If token is null or empty return null to mark no next page- Parameters:
token
- A token value- Returns:
- The newly created
-