MCPcopy
hub / github.com/google/gson / isJsonArray

Method isJsonArray

src/main/java/com/google/gson/JsonElement.java:38–40  ·  view source on GitHub ↗

provides check for verifying if this element is an array or not. @return true if this element is of type JsonArray, false otherwise.

()

Source from the content-addressed store, hash-verified

36 * @return true if this element is of type {@link JsonArray}, false otherwise.
37 */
38 public boolean isJsonArray() {
39 return this instanceof JsonArray;
40 }
41
42 /**
43 * provides check for verifying if this element is a Json object or not.

Callers 10

testParseMixedArrayMethod · 0.95
getAsJsonArrayMethod · 0.95
serializeMethod · 0.95
deserializeMethod · 0.80
navigateMethod · 0.80
visitChildMethod · 0.80
constructTargetMethod · 0.80
visitArrayMethod · 0.80
writeMethod · 0.80
deserializeMethod · 0.80

Calls

no outgoing calls

Tested by 1

testParseMixedArrayMethod · 0.76