Skip to content

Commit

Permalink
fixes page
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviojava committed Mar 17, 2019
1 parent c075fc3 commit 46c3f4d
Showing 1 changed file with 1 addition and 8 deletions.
Expand Up @@ -26,7 +26,7 @@
*
* @param <T> the entity type
*/
public interface Page<T> {
public interface Page<T> extends Supplier<Stream<T>> {

/**
* Returns the {@link Pagination} of the current {@link Page}
Expand Down Expand Up @@ -59,11 +59,4 @@ public interface Page<T> {
*/
<C extends Collection<T>> C getContent(Supplier<C> collectionFactory);

/**
* Returns the page content as {@link Stream}
*
* @return the content as {@link Stream}
*/
Stream<T> stream();

}

0 comments on commit 46c3f4d

Please sign in to comment.