All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.gc.aafc.dina.service.PredicateBasedReadOnlyDinaService Maven / Gradle / Ivy

The newest version!
package ca.gc.aafc.dina.service;

import java.util.Comparator;
import java.util.List;
import java.util.function.Predicate;

/**
 * Service layer to provide read-only access using {@link Predicate}.
 */
public interface PredicateBasedReadOnlyDinaService {

  T findOne(K key);

  /**
   * @param predicate  predicate or null
   * @param sortComparator sort comparator or null
   * @param pageOffset offset or null to use default
   * @param pageLimit  limit or null to use default
   * @return
   */
  List findAll(Predicate predicate, Comparator sortComparator, Integer pageOffset,
                  Integer pageLimit);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy