Interface JsonNumber

All Superinterfaces:
JsonValue

public interface JsonNumber extends JsonValue
Represents a number. Abstracted from javax.json (J2EE) and Jersey.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns this JSON number as a double.
    int
    Returns this JSON number as an int.
    long
    Returns this JSON number as a long.

    Methods inherited from interface de.iip_ecosphere.platform.support.json.JsonValue

    asJsonObject
  • Method Details

    • doubleValue

      double doubleValue()
      Returns this JSON number as a double. Note that this conversion can lose information about the overall magnitude and precision of the number value as well as return a result with the opposite sign.
      Returns:
      a double representation of the JSON number.
    • intValue

      int intValue()
      Returns this JSON number as an int. Note that this conversion can lose information about the overall magnitude and precision of the number value as well as return a result with the opposite sign.
      Returns:
      a int representation of the JSON number.
    • longValue

      long longValue()
      Returns this JSON number as a long. Note that this conversion can lose information about the overall magnitude and precision of the number value as well as return a result with the opposite sign.
      Returns:
      a long representation of the JSON number.