Class TokenPageNavigator

java.lang.Object
com.sinch.sdk.core.models.pagination.PageNavigator<String>
com.sinch.sdk.core.models.pagination.TokenPageNavigator

public class TokenPageNavigator extends com.sinch.sdk.core.models.pagination.PageNavigator<String>
Token Based Page Navigator
  • Constructor Details

    • TokenPageNavigator

      public TokenPageNavigator(String token)
      Create new instance
      Parameters:
      token - The token value
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class com.sinch.sdk.core.models.pagination.PageNavigator<String>
    • valueOf

      public static TokenPageNavigator valueOf(String token)
      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
    • valueOf

      public static TokenPageNavigator valueOf(TokenPageNavigator token)
      Check if token value is value and return same token is valid.

      Return null if token or it value isd is null If token is null or empty return null to mark no next page

      Parameters:
      token - A token value
      Returns:
      The newly created