Package pascal.taie.util
Class MutableInt
java.lang.Object
java.lang.Number
pascal.taie.util.MutableInt
- All Implemented Interfaces:
Serializable
,Comparable<Number>
A mutable int wrapper.
- See Also:
-
Constructor Summary
ConstructorDescriptionMutableInt
(int initialValue) Creates a new MutableInt with the given initial value. -
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
MutableInt
public MutableInt(int initialValue) Creates a new MutableInt with the given initial value.
-
-
Method Details
-
set
public void set(int newValue) Sets the value tonewValue
. -
add
public void add(int delta) Adds the given value to the current value. -
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
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Number>
-
equals
-
hashCode
public int hashCode() -
toString
-