|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.IntegerValue
public class IntegerValue
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).
Objectives.add(Objective, int)| Field Summary | |
|---|---|
protected java.lang.Integer |
value
|
| Constructor Summary | |
|---|---|
IntegerValue(java.lang.Integer value)
Constructs a IntegerValue. |
|
| Method Summary | |
|---|---|
int |
compareTo(Value<java.lang.Integer> arg)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Double |
getDouble()
Returns a double value. |
java.lang.Integer |
getValue()
Returns the value. |
int |
hashCode()
|
void |
setValue(java.lang.Integer value)
Sets the value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Integer value
| Constructor Detail |
|---|
public IntegerValue(java.lang.Integer value)
IntegerValue.
value - the specified integer| Method Detail |
|---|
public java.lang.Double getDouble()
Value
getDouble in interface Value<java.lang.Integer>public java.lang.Integer getValue()
Value
getValue in interface Value<java.lang.Integer>Value.setValue(V)public void setValue(java.lang.Integer value)
Value
setValue in interface Value<java.lang.Integer>value - the value to setValue.getValue()public int compareTo(Value<java.lang.Integer> arg)
compareTo in interface java.lang.Comparable<Value<java.lang.Integer>>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||