Interface NumberType

    • Method Detail

      • getValue

        Number getValue​(Number value)
        Converts the specified value into a value of this numeric type. E.g. an Integer is converted into a Double, if this represents the numeric type double.
        Parameters:
        value - value to be converted
        Returns:
        converted value
      • negate

        Number negate​(Number value)
        Returns -value.
        Parameters:
        value - value to be negated
        Returns:
        -value