public class NotConstraint extends Constraint
mErrorMessage
Constructor and Description |
---|
NotConstraint(String pErrorMessage,
Constraint pConstraint)
Create a new Constraint that inverts the given constraint.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(Object pValue)
Returns true if the specified constraint is false for the given value.
|
describeError, equals, hashCode, toString
public NotConstraint(String pErrorMessage, Constraint pConstraint)
pConstraint
- the constraint to test for the inverted condition.public boolean isValid(Object pValue)
isValid
in class Constraint
pValue
- the value to validate.© 1998- 2021 Escenic AS