
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 GlobalParameterConstraintParameterException - if the parameters don't satisfy the parameter constraint.public String getDescription()
GlobalParameterConstraintgetDescription in interface GlobalParameterConstraint