Class JsonNumber
- java.lang.Object
-
- org.hl7.fhir.utilities.json.model.JsonElement
-
- org.hl7.fhir.utilities.json.model.JsonPrimitive
-
- org.hl7.fhir.utilities.json.model.JsonNumber
-
public class JsonNumber extends JsonPrimitive
-
-
Constructor Summary
Constructors Constructor Description JsonNumber(int value)
JsonNumber(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JsonElement
copy(JsonElement other)
Integer
getInteger()
String
getValue()
protected JsonElement
make()
String
toString()
JsonElementType
type()
-
Methods inherited from class org.hl7.fhir.utilities.json.model.JsonPrimitive
toJson
-
Methods inherited from class org.hl7.fhir.utilities.json.model.JsonElement
asJsonArray, asJsonBoolean, asJsonNull, asJsonNumber, asJsonObject, asJsonPrimitive, asJsonString, asString, check, deepCopy, getComments, getEnd, getStart, hasComments, isJsonArray, isJsonBoolean, isJsonNull, isJsonNumber, isJsonObject, isJsonPrimitive, isJsonString, setEnd, setStart
-
-
-
-
Constructor Detail
-
JsonNumber
public JsonNumber(String value)
-
JsonNumber
public JsonNumber(int value)
-
-
Method Detail
-
type
public JsonElementType type()
- Specified by:
type
in classJsonElement
-
getValue
public String getValue()
- Specified by:
getValue
in classJsonPrimitive
-
getInteger
public Integer getInteger()
-
copy
protected JsonElement copy(JsonElement other)
- Specified by:
copy
in classJsonElement
-
make
protected JsonElement make()
- Specified by:
make
in classJsonElement
-
-