public class DoubleValue extends Object implements Value<Double>
DoubleValue is a Value with a Double as value.
The Objectives contains a convenience method that allows to add a
DoubleValue without creating a new instance:
Objectives.add(Objective, double).Objectives.add(Objective, double)| Constructor and Description |
|---|
DoubleValue(Double value)
Constructs a
DoubleValue. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Value<Double> arg) |
boolean |
equals(Object obj) |
Double |
getDouble()
Returns a double value.
|
Double |
getValue()
Returns the value.
|
int |
hashCode() |
void |
setValue(Double value)
Sets the value.
|
String |
toString() |
public DoubleValue(Double value)
DoubleValue.value - the specified valuepublic Double getDouble()
Valuepublic Double getValue()
ValuegetValue in interface Value<Double>Value.setValue(V)public void setValue(Double value)
ValuesetValue in interface Value<Double>value - the value to setValue.getValue()public int compareTo(Value<Double> arg)
compareTo in interface Comparable<Value<Double>>