public class NotConstraint extends Object implements Constraint
| Constructor and Description |
|---|
NotConstraint(Constraint... children)
Creates a new NotConstraint
|
NotConstraint(String failMessage,
Constraint... children)
Creates a new NotConstraint
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultFailMessage()
Includes the error message for the constraint
|
boolean |
isValid(Object value)
Indicates if the given value is valid or not
|
public NotConstraint(Constraint... children)
children - the child constraintspublic NotConstraint(String failMessage, Constraint... children)
failMessage - the default error message if the constraint failschildren - the child constraintspublic boolean isValid(Object value)
isValid in interface Constraintvalue - the value for the objectpublic String getDefaultFailMessage()
getDefaultFailMessage in interface Constraint