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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
DoubleValue
Constructs aDoubleValue.- Parameters:
value- the specified value
-
-
Method Details
-
getDouble
Description copied from interface:ValueReturns a double value. -
getValue
Description copied from interface:ValueReturns the value. -
setValue
Description copied from interface:ValueSets the value. -
compareTo
- Specified by:
compareToin interfaceComparable<Value<Double>>
-
hashCode
public int hashCode() -
equals
-
toString
-