Interface Page<T>

  • Type Parameters:
    T - The data type
    All Superinterfaces:
    Iterable<T>
    All Known Implementing Classes:
    PageImpl

    public interface Page<T>
    extends Iterable<T>
    A page contains a subset of data, and knows the number of total results
    • Method Detail

      • getCurrentPage

        int getCurrentPage()
        Returns the number of this page within the total
      • getPageCount

        Integer getPageCount()
        Returns the total number of pages. If the total count is unknown, returns null.
      • getPageItems

        List<T> getPageItems()
        Returns the page items
      • getPageSize

        int getPageSize()
        Returns the page size
      • getTotalCount

        Integer getTotalCount()
        Returns the total number of records. If the total count is unknown, returns null.
      • isHasNextPage

        boolean isHasNextPage()
        Returns whether a next page exists
      • stream

        Stream<T> stream()
        Returns a stream with the page items