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

Method isBoolean

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

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

()

Source from the content-addressed store, hash-verified

106 * @return true if this primitive contains a boolean value, false otherwise.
107 */
108 public boolean isBoolean() {
109 return value instanceof Boolean;
110 }
111
112 /**
113 * convenience method to get this element as a {@link Boolean}.

Callers 5

testBooleanMethod · 0.95
getAsBooleanMethod · 0.95
getAsStringMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls

Tested by 2

testBooleanMethod · 0.76