
public class EqualSizeGlobalConstraint extends Object implements GlobalParameterConstraint
ListParameter
) must have equal list sizes.| Modifier and Type | Field and Description |
|---|---|
private List<ListParameter<?>> |
parameters
List parameters to be tested
|
| Constructor and Description |
|---|
EqualSizeGlobalConstraint(List<ListParameter<?>> params)
Creates a global parameter constraint for testing if a number of list
parameters have equal list sizes.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks if the list parameters have equal list sizes.
|
private List<ListParameter<?>> parameters
public EqualSizeGlobalConstraint(List<ListParameter<?>> params)
params - list parameters to be tested for equal list sizespublic void test()
throws ParameterException
test in interface GlobalParameterConstraintParameterException - if the parameters don't satisfy the parameter constraint.public String getDescription()
GlobalParameterConstraintgetDescription in interface GlobalParameterConstraint