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>
public final class MutableInt extends Number implements Comparable<MutableInt>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MutableInt()
MutableInt(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
add(int addend)
int
compareTo(MutableInt other)
int
decrement()
double
doubleValue()
boolean
equals(Object o)
float
floatValue()
int
hashCode()
int
increment()
int
intValue()
long
longValue()
void
setValue(int value)
int
subtract(int subtrahend)
String
toString()
-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Method Detail
-
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)
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
compareTo
public int compareTo(MutableInt other)
- Specified by:
compareTo
in interfaceComparable<MutableInt>
-
-