Interface JsonPrimitive
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
getAsBoolean()
double
getAsDouble()
float
getAsFloat()
int
getAsInt()
long
getAsLong()
short
getAsShort()
String
getAsString()
boolean
isBoolean()
boolean
isNumber()
boolean
isString()
default boolean
isValue()
-
-
-
Method Detail
-
isValue
default boolean isValue()
- Specified by:
isValue
in interfaceJsonNode
- Returns:
- True if this
JsonNode
is an instance ofJsonPrimitive
.
-
isBoolean
boolean isBoolean()
- Returns:
- Whether the
JsonPrimitive
represents a boolean.
-
getAsBoolean
boolean getAsBoolean()
- Returns:
- The boolean value contained in the
JsonPrimitive
.
-
isNumber
boolean isNumber()
- Returns:
- Whether the
JsonPrimitive
represents a number.
-
getAsDouble
double getAsDouble()
- Returns:
- The double value contained in the
JsonPrimitive
.
-
getAsFloat
float getAsFloat()
- Returns:
- The float value contained in the
JsonPrimitive
.
-
getAsInt
int getAsInt()
- Returns:
- The int value contained in the
JsonPrimitive
.
-
getAsLong
long getAsLong()
- Returns:
- The long value contained in the
JsonPrimitive
.
-
getAsShort
short getAsShort()
- Returns:
- The short value contained in the
JsonPrimitive
.
-
isString
boolean isString()
- Returns:
- Whether the
JsonPrimitive
represents a number.
-
getAsString
String getAsString()
- Returns:
- The String value contained in the
JsonPrimitive
.
-
-