Package peak.can
Class MutableLong
java.lang.Object
peak.can.MutableLong
The MutableInteger class wraps a value of the primitive type int in an object. An object of type Integer contains a single field whose type is int.
This class is used because Java.Lang.Integer objects are defined as Imutable. Yet, we need to maintain object reference when it's passed to the JNI library using.
So, we defined a simple Class which extends Java.Lang.Object to resolve the problematic.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMutableLong
(long value) ConstructorMutableLong
(String value, int radix) Constructor parsing the string argument as a integer -
Method Summary
-
Field Details
-
value
public long value
-
-
Constructor Details
-
MutableLong
public MutableLong(long value) Constructor- Parameters:
value
- int value
-
MutableLong
Constructor parsing the string argument as a integer- Parameters:
value
- long as stringradix
-
-
-
Method Details