Class MutableNumber

java.lang.Object
java.lang.Number
overit.geocall.util.MutableNumber
All Implemented Interfaces:
Serializable

public class MutableNumber extends Number
Utility class that manages a mutable number that cannot be null
See Also:
  • Constructor Details

    • MutableNumber

      public MutableNumber(Number n)
      Creates an instance of MutableNumber that cannot be null
      Parameters:
      n - The number
  • Method Details

    • set

      public void set(Number n)
      Sets a number
      Parameters:
      n - The number to set
    • get

      public Number get()
      Returns the number
      Returns:
      The number
    • doubleValue

      public double doubleValue()
      Specified by:
      doubleValue in class Number
    • floatValue

      public float floatValue()
      Specified by:
      floatValue in class Number
    • intValue

      public int intValue()
      Specified by:
      intValue in class Number
    • longValue

      public long longValue()
      Specified by:
      longValue in class Number