Type Parameters:
T - entity-type to apply the criteria to.
All Known Implementing Classes:
AbstractCriteriaNode, CriteriaAndNode, CriteriaByExample, CriteriaOrNode, CriteriaSingleNode
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 Criteria<T>
Criteria to apply to an entity and check if the criteria is fulfilled or not.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Criteria<T>
    Empty criteria which is always true.
    boolean
    evaluate(T object)
    Checks the criteria against the given object.
  • Method Details

    • createNoCriteria

      static <T> Criteria<T> createNoCriteria()
      Empty criteria which is always true.
    • evaluate

      boolean evaluate(@Nullable T object)
      Checks the criteria against the given object.
      Parameters:
      object - to check the criteria against.
      Returns:
      true if the object is within the criteria, false if not.