public class ListParameterNoDuplicateValueConstraint<T> extends Object implements ParameterConstraint<List<T>>
Constructor and Description |
---|
ListParameterNoDuplicateValueConstraint()
Constructs a Not-Equal-Value parameter constraint.
|
public ListParameterNoDuplicateValueConstraint()
public void test(List<T> list) throws ParameterException
test
in interface ParameterConstraint<List<T>>
list
- Value to be checked whether or not it fulfills the underlying
parameter constraint.ParameterException
- if the parameter to be tested does not
fulfill the parameter constraintpublic String getDescription(String parameterName)
ParameterConstraint
getDescription
in interface ParameterConstraint<List<T>>
parameterName
- the name of the parameter this constraint is used for