/** * Learn whether any element returned from an Iterator matches a given value. * @param it Iterator * @param value to look for * @return whether a match was found */ private boolean containsMatch(Iterator it, Object value) { while (it.hasNext()) { Object element = it.next(); if (compute(element, value)) { return true; } } return false; }
public final Object computeValue(EvalContext context) { return compute(args[0].compute(context), args[1].compute(context)) ? Boolean.TRUE : Boolean.FALSE; }