java.lang.Object
software.xdev.spring.data.eclipse.store.repository.query.criteria.AbstractCriteriaNode<T>
software.xdev.spring.data.eclipse.store.repository.query.criteria.CriteriaAndNode<T>
All Implemented Interfaces:
Criteria<T>

public class CriteriaAndNode<T> extends AbstractCriteriaNode<T>
Criteria to apply to an entity and check if the criteria is fulfilled or not.

Evaluates to true if all it's own AbstractCriteriaNode.predicates and childCriteria is true.

  • Constructor Details

  • Method Details

    • evaluate

      public boolean evaluate(@Nullable T object)
      Checks the criteria against the given object.

      Checks all it's own AbstractCriteriaNode.predicates and then evaluates it's childCriteria

      Parameters:
      object - to check the criteria against.
      Returns:
      true if the object is within the criteria, false if not.