T
- Number typepublic class LessGlobalConstraint<T extends Number> extends Object implements GlobalParameterConstraint
NumberParameter
) given has to be less than the
value of the second number parameter (NumberParameter
) given.Modifier and Type | Field and Description |
---|---|
private NumberParameter<?,T> |
first
First number parameter.
|
private NumberParameter<?,T> |
second
Second number parameter.
|
Constructor and Description |
---|
LessGlobalConstraint(NumberParameter<?,T> first,
NumberParameter<?,T> second)
Creates a Less-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 than the value of
the second number parameter.
|
private NumberParameter<?,T extends Number> first
private NumberParameter<?,T extends Number> second
public LessGlobalConstraint(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