Exemple #1
0
 @Override
 public boolean evaluate(PredicateParser parser, Object object, Predicate predicate) {
   for (Predicate child : ((CompoundPredicate) predicate).getChildren()) {
     if (parser.evaluate(object, child)) {
       return true;
     }
   }
   return false;
 }
Exemple #2
0
 /** Returns {@code true} if the given {@code predicate} matches the given {@code object}. */
 public static boolean evaluate(Object object, Predicate predicate) {
   return DEFAULT_PARSER.evaluate(object, predicate);
 }