Interface Page<T>

Type Parameters:
T - The element type
All Superinterfaces:
Iterable<T>, Slice<T>
All Known Subinterfaces:
KeysetAwarePage<T>

public interface Page<T>
extends Slice<T>
A sublist of a list of objects, heavily inspired by Spring Data's Page.
Since:
1.2.0
Author:
Christian Beikov
  • Method Details

    • getTotalPages

      int getTotalPages()
      Returns the number of total pages.
      Returns:
      The number of total pages
    • getTotalElements

      long getTotalElements()
      Returns the total amount of elements.
      Returns:
      The total amount of elements