Package org.optaplanner.core.impl.util
Class MutableInt
java.lang.Object
java.lang.Number
org.optaplanner.core.impl.util.MutableInt
- All Implemented Interfaces:
Serializable
,Comparable<MutableInt>
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
MutableInt
public MutableInt() -
MutableInt
public MutableInt(int value)
-
-
Method Details
-
setValue
public void setValue(int value) -
increment
public int increment() -
decrement
public int decrement() -
add
public int add(int addend) -
subtract
public int subtract(int subtrahend) -
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<MutableInt>
-
toString
-