MCPcopy Index your code
hub / github.com/google/gson / isNumber

Method isNumber

src/main/java/com/google/gson/JsonPrimitive.java:137–139  ·  view source on GitHub ↗

Check whether this primitive contains a Number. @return true if this primitive contains a Number, false otherwise.

()

Source from the content-addressed store, hash-verified

135 * @return true if this primitive contains a Number, false otherwise.
136 */
137 public boolean isNumber() {
138 return value instanceof Number;
139 }
140
141 /**
142 * convenience method to get this element as a Number.

Callers 11

getAsStringMethod · 0.95
getAsDoubleMethod · 0.95
getAsFloatMethod · 0.95
getAsLongMethod · 0.95
getAsShortMethod · 0.95
getAsIntMethod · 0.95
getAsByteMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls