Interface JsonNumber
- All Superinterfaces:
JsonValue
Represents a number. Abstracted from javax.json (J2EE) and Jersey.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns this JSON number as a double.intintValue()Returns this JSON number as an int.longReturns 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.
-