Class Page<T extends Pageable>

java.lang.Object
com.ngrok.definitions.Page<T>

public class Page<T extends Pageable> extends Object
Wrapper class that holds a single page of a Pageable response.
  • Constructor Details

    • Page

      public Page(NgrokApiClient apiClient, T page)
      Create a new page.
      Parameters:
      apiClient - the API client used to fetch the page
      page - the page itself
  • Method Details

    • getPage

      public T getPage()
      Returns the current response page.
      Returns:
      a page
    • next

      public CompletionStage<Optional<Page<T>>> next()
      Fetches the next page of responses, if any.
      Returns:
      a future encapsulating a possible next page