Interface JsonPrimitive
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleangetAsBoolean()doublegetAsDouble()floatgetAsFloat()intgetAsInt()longgetAsLong()shortgetAsShort()StringgetAsString()booleanisBoolean()booleanisNumber()booleanisString()default booleanisValue()
-
-
-
Method Detail
-
isValue
default boolean isValue()
- Specified by:
isValuein interfaceJsonNode- Returns:
- True if this
JsonNodeis an instance ofJsonPrimitive.
-
isBoolean
boolean isBoolean()
- Returns:
- Whether the
JsonPrimitiverepresents a boolean.
-
getAsBoolean
boolean getAsBoolean()
- Returns:
- The boolean value contained in the
JsonPrimitive.
-
isNumber
boolean isNumber()
- Returns:
- Whether the
JsonPrimitiverepresents 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
JsonPrimitiverepresents a number.
-
getAsString
String getAsString()
- Returns:
- The String value contained in the
JsonPrimitive.
-
-