Interface Page<T>

  • Type Parameters:
    T - the item type
    All Superinterfaces:
    Iterable<T>, Slice<T>

    public interface Page<T>
    extends Slice<T>
    An indexed page of contiguous items taken from a bigger list.
    • Method Detail

      • getIndex

        long getIndex()
        Returns the index of the page.
        Returns:
        the page index.
      • getMaxSize

        long getMaxSize()
        Returns the maximum size of the page.
        Returns:
        the maximum size of the page.
      • getTotalSize

        long getTotalSize()
        Returns the total size of the list this page is derived from.
        Returns:
        the total size of the bigger list.