Package org.opt4j.core
Class DoubleValue
java.lang.Object
org.opt4j.core.DoubleValue
- All Implemented Interfaces:
Comparable<Value<Double>>
,Value<Double>
The
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)
.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
DoubleValue
Constructs aDoubleValue
.- Parameters:
value
- the specified value
-
-
Method Details
-
getDouble
Description copied from interface:Value
Returns a double value. -
getValue
Description copied from interface:Value
Returns the value. -
setValue
Description copied from interface:Value
Sets the value. -
compareTo
- Specified by:
compareTo
in interfaceComparable<Value<Double>>
-
hashCode
public int hashCode() -
equals
-
toString
-