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