Interface OracleJsonNumber

    • Method Detail

      • isIntegral

        boolean isIntegral()
        Returns true when bigDecimalValue().scale() == 0.
        Returns:
        true if this is an integral number
      • intValue

        int intValue()
        Returns this number as an int. This number may lose information about the overall magnitude and precision of the number value.
        Returns:
        the number as an int
      • intValueExact

        int intValueExact()
        Returns this number as an int.
        Returns:
        the number as an int
        Throws:
        java.lang.ArithmeticException - if the number has a non-fractional part or if it does not fit in an int
      • longValue

        long longValue()
        Returns this number as a long. This number may lose information about the overall magnitude and precision of the number value.
        Returns:
        the number as an long
      • longValueExact

        long longValueExact()
        Returns this number as an long.
        Returns:
        the number as an long
        Throws:
        java.lang.ArithmeticException - if the number has a non-fractional part or if it does not fit in an long
      • bigDecimalValue

        java.math.BigDecimal bigDecimalValue()
        Returns this number as a BigDecimal value.
        Returns:
        the number as a BigDecimal
      • bigIntegerValue

        java.math.BigInteger bigIntegerValue()
        Returns this number as a BigInteger. This number may lose information about the overall magnitude and precision of the number value.
        Returns:
        the number as an BigInteger
      • bigIntegerValueExact

        java.math.BigInteger bigIntegerValueExact()
        Returns this number as a BigInteger.
        Returns:
        the number as an BigInteger
        Throws:
        java.lang.ArithmeticException - if the number has a non-fractional part or if it does not fit in an long
      • doubleValue

        double doubleValue()
        Returns this value as a double. For values of type OracleJsonValue.OracleJsonType.DECIMAL this method may lose information about the overall magnitude and precision of the number value.
        Returns:
        the number as a double.