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

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

Evaluates to true if either the leftCriteria or rightCriteria is true.

  • Constructor Details

    • CriteriaOrNode

      protected CriteriaOrNode(Criteria<T> leftCriteria, Criteria<T> rightCriteria)
  • Method Details

    • evaluate

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

      Evaluates to true if either the leftCriteria or rightCriteria is true.

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