public class JsonNumber extends JsonPrimitive
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
JsonNumber |
getAsNumber() |
int |
hashCode() |
boolean |
isNumber() |
Number |
value() |
static JsonNumber |
value(BigDecimal number) |
static JsonNumber |
value(double number) |
static JsonNumber |
value(long number) |
static JsonNumber |
valueDecimal(String image) |
static JsonNumber |
valueDouble(String image) |
static JsonNumber |
valueInteger(String image) |
void |
visit(JsonVisitor visitor) |
getAsArray, getAsBoolean, getAsObject, getAsString, isArray, isBoolean, isNull, isObject, isPrimitive, isString, output, toString
public static JsonNumber valueDecimal(String image)
public static JsonNumber valueDouble(String image)
public static JsonNumber valueInteger(String image)
public static JsonNumber value(long number)
public static JsonNumber value(double number)
public static JsonNumber value(BigDecimal number)
public JsonNumber getAsNumber()
getAsNumber
in class JsonValue
public Number value()
public void visit(JsonVisitor visitor)
Licenced under the Apache License, Version 2.0