@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; }
/** 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); }