MCPcopy Create free account
hub / github.com/google/gson / isString

Method isString

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

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

()

Source from the content-addressed store, hash-verified

172 * @return true if this primitive contains a String value, false otherwise.
173 */
174 public boolean isString() {
175 return value instanceof String;
176 }
177
178 /**
179 * convenience method to get this element as a String.

Callers 4

testStringsAndCharMethod · 0.95
toStringMethod · 0.95

Calls

no outgoing calls

Tested by 3

testStringsAndCharMethod · 0.76