Interface SyncPageFetcher<ResponseT>


public interface SyncPageFetcher<ResponseT>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns a boolean value indicating if a next page is available.
    Method that uses the information in #oldPage and returns the next page if available by making a service call.
  • Method Details

    • hasNextPage

      boolean hasNextPage(ResponseT oldPage)
      Returns a boolean value indicating if a next page is available.
      Parameters:
      oldPage - last page sent by service in a paginated operation
      Returns:
      True if there is a next page available. Otherwise false.
    • nextPage

      ResponseT nextPage(ResponseT oldPage)
      Method that uses the information in #oldPage and returns the next page if available by making a service call.
      Parameters:
      oldPage - last page sent by service in a paginated operation
      Returns:
      the next page if available. Otherwise returns null.