public class LessEqualConstraint extends AbstractNumberConstraint<Number>
NumberParameter
) tested has to be less equal than
the specified constraint value.constraintValue
Constructor and Description |
---|
LessEqualConstraint(double constraintValue)
Creates a Less-Equal-Than-Number parameter constraint.
|
LessEqualConstraint(int constraintValue)
Creates a Less-Equal-Than-Number parameter constraint.
|
LessEqualConstraint(Number constraintValue)
Creates a Less-Equal-Than-Number parameter constraint.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription(String parameterName)
Returns a description of this constraint.
|
void |
test(Number t)
Checks if the number value given by the number parameter is less equal than
the constraint value.
|
public LessEqualConstraint(Number constraintValue)
constraintValue
- the constraint valuepublic LessEqualConstraint(double constraintValue)
constraintValue
- the constraint valuepublic LessEqualConstraint(int constraintValue)
constraintValue
- the constraint valuepublic void test(Number t) throws ParameterException
t
- 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
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.