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 JsonElementcopy(JsonElement other)IntegergetInteger()StringgetValue()protected JsonElementmake()StringtoString()JsonElementTypetype()-
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:
typein classJsonElement
-
getValue
public String getValue()
- Specified by:
getValuein classJsonPrimitive
-
getInteger
public Integer getInteger()
-
copy
protected JsonElement copy(JsonElement other)
- Specified by:
copyin classJsonElement
-
make
protected JsonElement make()
- Specified by:
makein classJsonElement
-
-