public static class Json.NumbeR extends java.lang.Object implements Json.Value
Notice that the last letter of the class name is capitalized to avoid confusion with Number.
| Modifier and Type | Field and Description |
|---|---|
java.lang.Number |
value
The value of the JSON number; either a
Long or a Double. |
| Constructor and Description |
|---|
NumbeR(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Json.ValueVisitor visitor)
Invokes the value type-specific '
visit...()' method of Json.ValueVisitor. |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
public final java.lang.Number value
Long or a Double.public void accept(Json.ValueVisitor visitor)
Json.Valuevisit...()' method of Json.ValueVisitor.accept in interface Json.Valuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable java.lang.Object obj)
equals in class java.lang.Object