class Pages {

  public static <E, X extends Exception> Stream<E> streamLazily(
      PageSupplier<E, X> supplier, int size) {
    return StreamSupport.stream(new PagedIterable<>(supplier, size).spliterator(), false);
  }

  private  Pages();

}