public class IntegerValue extends Object implements Value<Integer>
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).Objectives.add(Objective, int)| Constructor and Description |
|---|
IntegerValue(Integer value)
Constructs a
IntegerValue. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Value<Integer> arg) |
boolean |
equals(Object obj) |
Double |
getDouble()
Returns a double value.
|
Integer |
getValue()
Returns the value.
|
int |
hashCode() |
void |
setValue(Integer value)
Sets the value.
|
String |
toString() |
public IntegerValue(Integer value)
IntegerValue.value - the specified integerpublic Double getDouble()
Valuepublic Integer getValue()
ValuegetValue in interface Value<Integer>Value.setValue(V)public void setValue(Integer value)
ValuesetValue in interface Value<Integer>value - the value to setValue.getValue()public int compareTo(Value<Integer> arg)
compareTo in interface Comparable<Value<Integer>>