Package overit.geocall.util
Class MutableNumber
java.lang.Object
java.lang.Number
overit.geocall.util.MutableNumber
- All Implemented Interfaces:
Serializable
Utility class that manages a mutable number that cannot be null
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MutableNumber that cannot be null -
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
MutableNumber
Creates an instance of MutableNumber that cannot be null- Parameters:
n- The number
-
-
Method Details
-
set
Sets a number- Parameters:
n- The number to set
-
get
Returns the number- Returns:
- The number
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
intValue
public int intValue() -
longValue
public long longValue()
-