public class ListParameterNoDuplicateValueConstraint<T> extends Object implements ParameterConstraint<List<T>>
Constructor and Description |
---|
ListParameterNoDuplicateValueConstraint()
Constructs a Not-Equal-Value parameter constraint.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription(String parameterName)
Returns a description of this constraint.
|
void |
test(List<T> list)
Checks if the elements of the list of parameter values do have different
values.
|
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 forCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.