public Pagination evaluate(final Class entityClass){
  Paginate paginate=entityClass != null ? (Paginate)entityClass.getAnnotation(Paginate.class) : null;
  int defaultLimit=paginate != null ? paginate.defaultLimit() : DEFAULT_PAGE_LIMIT;
  int maxLimit=paginate != null ? paginate.maxLimit() : MAX_PAGE_LIMIT;
  evaluate(defaultLimit,maxLimit);
  generateTotals=generateTotals && (paginate == null || paginate.countable());
  return this;
}

public Pagination evaluate ( final Class entityClass ) { Paginate paginate = entityClass != null ? ( Paginate ) entityClass . getAnnotation ( Paginate . class ) : null ; int defaultLimit = paginate != null ? paginate . defaultLimit ( ) : DEFAULT_PAGE_LIMIT ; int maxLimit = paginate != null ? paginate . maxLimit ( ) : MAX_PAGE_LIMIT ; evaluate ( defaultLimit , maxLimit ) ; generateTotals = generateTotals && ( paginate == null || paginate . countable ( ) ) ; return this ; }
evaluates the pagination variables . uses the paginate annotation if it has been set for the entity to be queried .
