public class GreaterConstraint extends AbstractNumberConstraint
NumberParameter) tested is greater than the specified
constraint value.constraintValue| Constructor and Description |
|---|
GreaterConstraint(double constraintValue)
Creates a Greater-Than-Number parameter constraint.
|
GreaterConstraint(int constraintValue)
Creates a Greater-Than-Number parameter constraint.
|
GreaterConstraint(java.lang.Number constraintValue)
Creates a Greater-Than-Number parameter constraint.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription(java.lang.String parameterName)
Returns a description of this constraint.
|
void |
test(java.lang.Number t)
Checks if the number value given by the number parameter is greater than
the constraint value.
|
public GreaterConstraint(java.lang.Number constraintValue)
That is, the value of the number parameter has to be greater than the given constraint value.
constraintValue - the constraint valuepublic GreaterConstraint(int constraintValue)
That is, the value of the number parameter has to be greater than the given constraint value.
constraintValue - the constraint valuepublic GreaterConstraint(double constraintValue)
That is, the value of the number parameter has to be greater than the given constraint value.
constraintValue - the constraint valuepublic void test(java.lang.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 java.lang.String getDescription(java.lang.String parameterName)
ParameterConstraintparameterName - the name of the parameter this constraint is used forCopyright © 2019 ELKI Development Team. License information.