public static final class Json.JNumber extends Json.JValue
| Modifier and Type | Field and Description |
|---|---|
BigDecimal |
value |
| Modifier and Type | Method and Description |
|---|---|
double |
asDouble() |
int |
asInt() |
long |
asLong() |
boolean |
equals(Object o) |
<X> X |
fold(Function<Json.JString,X> fString,
Function<Json.JBoolean,X> fBoolean,
Function<Json.JNumber,X> fNumber,
Function<Json.JObject,X> fObject,
Function<Json.JArray,X> fArray,
Supplier<X> fNull) |
void |
foldUnit(Consumer<Json.JString> fString,
Consumer<Json.JBoolean> fBoolean,
Consumer<Json.JNumber> fNumber,
Consumer<Json.JObject> fObject,
Consumer<Json.JArray> fArray,
Runnable fNull) |
BigDecimal |
getValue() |
int |
hashCode() |
String |
toString()
This is NOT the json representation.
|
asBigDecimal, asBoolean, asJsonArray, asJsonArrayOrEmpty, asJsonBoolean, asJsonNull, asJsonNumber, asJsonObject, asJsonObjectOrEmpty, asJsonString, asStringpublic BigDecimal value
public boolean equals(Object o)
equals in class Json.JValuepublic int hashCode()
hashCode in class Json.JValuepublic String toString()
Json.JValuetoString in class Json.JValuepublic <X> X fold(Function<Json.JString,X> fString, Function<Json.JBoolean,X> fBoolean, Function<Json.JNumber,X> fNumber, Function<Json.JObject,X> fObject, Function<Json.JArray,X> fArray, Supplier<X> fNull)
fold in class Json.JValuepublic void foldUnit(Consumer<Json.JString> fString, Consumer<Json.JBoolean> fBoolean, Consumer<Json.JNumber> fNumber, Consumer<Json.JObject> fObject, Consumer<Json.JArray> fArray, Runnable fNull)
foldUnit in class Json.JValuepublic long asLong()
public int asInt()
public double asDouble()
public BigDecimal getValue()
Copyright © 2015. All rights reserved.