public class GroupConstraint extends Object implements Constraint
| Constructor and Description |
|---|
GroupConstraint(Constraint... group)
Create a new constraint group
|
| 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 GroupConstraint(Constraint... group)
group - the grouppublic boolean isValid(Object value)
isValid in interface Constraintvalue - the value for the objectpublic String getDefaultFailMessage()
getDefaultFailMessage in interface Constraint