public class EqualSizeGlobalConstraint extends Object implements GlobalParameterConstraint
ListParameter
) must have equal list sizes.Modifier and Type | Field and Description |
---|---|
private ListParameter<?,?>[] |
parameters
List parameters to be tested
|
Constructor and Description |
---|
EqualSizeGlobalConstraint(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 ListParameter<?,?>[] parameters
public EqualSizeGlobalConstraint(ListParameter<?,?>... params)
params
- list parameters to be tested for equal list sizespublic void test() throws ParameterException
test
in interface GlobalParameterConstraint
ParameterException
- if the parameters don't satisfy the parameter constraint.public String getDescription()
GlobalParameterConstraint
getDescription
in interface GlobalParameterConstraint