Interface PaginationCallback<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PaginationCallback<T>
Since:
10/10/18
Author:
natanbc
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(T entity)
    Accepts a fetched entity.
  • Method Details

    • accept

      boolean accept(T entity)
      Accepts a fetched entity. Pagination stops if this method returns false.
      Parameters:
      entity - Entity fetched.
      Returns:
      True, if more entities should be paginated.