Interface Slice<T>

  • Type Parameters:
    T - the item type
    All Superinterfaces:
    Iterable<T>
    All Known Subinterfaces:
    Page<T>

    public interface Slice<T>
    extends Iterable<T>
    A slice of contiguous items taken from a bigger list.
    • Method Detail

      • getItems

        List<T> getItems()
        Return items contained in the slice.
        Returns:
        the items.
      • getSize

        long getSize()
        Returns the size of the slice.
        Returns:
        the number of items.