Package org.opt4j.core
Class IntegerValue
java.lang.Object
org.opt4j.core.IntegerValue
- All Implemented Interfaces:
Comparable<Value<Integer>>
,Value<Integer>
The
IntegerValue
is a Value
with an Integer
as value.
The Objectives
contains a convenience method that allows to add an
IntegerValue
without creating a new instance:
Objectives.add(Objective, int)
.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
IntegerValue
Constructs aIntegerValue
.- Parameters:
value
- the specified integer
-
-
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<Integer>>
-
hashCode
public int hashCode() -
equals
-
toString
-