com.bpodgursky.jbool_expressions.eval.EvalOr Maven / Gradle / Ivy
package com.bpodgursky.jbool_expressions.eval;
import com.bpodgursky.jbool_expressions.Expression;
import com.bpodgursky.jbool_expressions.Or;
import java.util.Map;
public class EvalOr extends EvalRule {
@Override
public boolean evaluate(Expression expression, Map> rules) {
Or or = (Or) expression;
boolean value = false;
for(Expression e: or.expressions){
value |= evaluateInternal(e, rules);
}
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy