Class CursorPageNavigator

java.lang.Object
com.sinch.sdk.core.models.pagination.PageNavigator<Integer>
com.sinch.sdk.core.models.pagination.CursorPageNavigator

public class CursorPageNavigator extends com.sinch.sdk.core.models.pagination.PageNavigator<Integer>
Cursor Based Page Navigator
  • Constructor Details

    • CursorPageNavigator

      public CursorPageNavigator(Integer currentPage, Integer pageSize, Long collectionSize)
      Create new instance
      Parameters:
      currentPage - Current page value
      pageSize - Page size
      collectionSize - Size of collection
  • Method Details

    • getToken

      public Integer getToken()
      Get current page navigator token
      Overrides:
      getToken in class com.sinch.sdk.core.models.pagination.PageNavigator<Integer>
      Returns:
      Token value
    • toString

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