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

public class CriteriaSingleNode<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 is true.

  • Constructor Details

    • CriteriaSingleNode

      public CriteriaSingleNode()
    • CriteriaSingleNode

      public CriteriaSingleNode(ReflectedField<T,?> field)
  • Method Details

    • evaluate

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

      Checks all it's own AbstractCriteriaNode.predicates

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