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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
IntegerValue
Constructs aIntegerValue.- Parameters:
value- the specified integer
-
-
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<Integer>>
-
hashCode
public int hashCode() -
equals
-
toString
-