T
- Number typepublic class LessEqualGlobalConstraint<T extends Number> extends Object implements GlobalParameterConstraint
NumberParameter
) has to be less equal than
the value of the second number parameter (NumberParameter
).Modifier and Type | Field and Description |
---|---|
private NumberParameter<?,T> |
first
First number parameter.
|
private NumberParameter<?,T> |
second
Second number parameter.
|
Constructor and Description |
---|
LessEqualGlobalConstraint(NumberParameter<?,T> first,
NumberParameter<?,T> second)
Creates a Less-Equal-Than global parameter constraint.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of this global constraint.
|
void |
test()
Checks if the value of the first number parameter is less equal than the
value of the second number parameter.
|
private NumberParameter<?,T extends Number> first
private NumberParameter<?,T extends Number> second
public LessEqualGlobalConstraint(NumberParameter<?,T> first, NumberParameter<?,T> second)
first
- first number parametersecond
- second number parameterpublic 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
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.