Interface StreamPages

All Known Implementing Classes:
StreamPagesImpl

@PublicApi public interface StreamPages
Public API for creating StreamPage instances.
Since:
10.7.1
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> StreamPage<T>
    streamPage(List<T> values, String nextCursor, StreamPageRequest pageRequest)
    Creates a page given a list of values consisting the page, a next cursor and a page request.
  • Method Details

    • streamPage

      <T> StreamPage<T> streamPage(List<T> values, String nextCursor, StreamPageRequest pageRequest)
      Creates a page given a list of values consisting the page, a next cursor and a page request.
      Type Parameters:
      T - type of entities in the list
      Parameters:
      values - values that appear on the page
      nextCursor - the next cursor to be used for the next page
      pageRequest - a page request used to create this page
      Returns:
      the requested page