public class AndConstraint extends Object implements Constraint
AndConstraint implements an AND constraint.| Constructor and Description | 
|---|
| AndConstraint(Constraint left,
             Constraint right)Creates a new AND constraint. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | evaluate(ScoreNode[] row,
        Name[] selectorNames,
        EvaluationContext context)Evaluates this constraint for the given row. | 
public AndConstraint(Constraint left, Constraint right)
left - the left operand.right - the right operand.public boolean evaluate(ScoreNode[] row, Name[] selectorNames, EvaluationContext context) throws IOException
evaluate in interface Constraintrow - the current row of score nodes.selectorNames - the selector names associated with row.context - the evaluation context.true if the row satisfies the constraint,
         false otherwise.IOException - if an error occurs while evaluating the constraint.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.