public class NotConstraint extends Object implements Constraint
NotConstraint
implements a NOT constraint.Constructor and Description |
---|
NotConstraint(Constraint constraint)
Creates a new NOT constraint with the given
constraint as
its operand. |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(ScoreNode[] row,
Name[] selectorNames,
EvaluationContext context)
Evaluates this constraint for the given row.
|
public NotConstraint(Constraint constraint)
constraint
as
its operand.constraint
- the operand.public boolean evaluate(ScoreNode[] row, Name[] selectorNames, EvaluationContext context) throws IOException
evaluate
in interface Constraint
row
- 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.