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 intadd(int addend)intcompareTo(MutableInt other)intdecrement()doubledoubleValue()booleanequals(Object o)floatfloatValue()inthashCode()intincrement()intintValue()longlongValue()voidsetValue(int value)intsubtract(int subtrahend)StringtoString()- 
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:
 floatValuein classNumber
 
- 
doubleValue
public double doubleValue()
- Specified by:
 doubleValuein classNumber
 
- 
compareTo
public int compareTo(MutableInt other)
- Specified by:
 compareToin interfaceComparable<MutableInt>
 
 - 
 
 -