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

Method add

gson/src/main/java/com/google/gson/JsonArray.java:86–88  ·  gson/src/main/java/com/google/gson/JsonArray.java::JsonArray.add

Adds the specified boolean to self. @param bool the boolean that needs to be added to the array. @since 2.4

(Boolean bool)

Source from the content-addressed store, hash-verified

84 * @since 2.4
85 */
86 public void add(Boolean bool) {
87 elements.add(bool == null ? JsonNull.INSTANCE : new JsonPrimitive(bool));
88 }
89
90 /**
91 * Adds the specified character to self.

Callers 15

serializeMethod · 0.95
testDeepCopyMethod · 0.95
testToStringMethod · 0.95
testGetMethod · 0.95
testSizeMethod · 0.95
testSetMethod · 0.95
testAddMethod · 0.95
testAddAllMethod · 0.95
testRemoveIndexMethod · 0.95
testRemoveElementMethod · 0.95
testClearMethod · 0.95
testContainsMethod · 0.95

Calls

no outgoing calls

Tested by 15

testDeepCopyMethod · 0.76
testToStringMethod · 0.76
testGetMethod · 0.76
testSizeMethod · 0.76
testSetMethod · 0.76
testAddMethod · 0.76
testAddAllMethod · 0.76
testRemoveIndexMethod · 0.76
testRemoveElementMethod · 0.76
testClearMethod · 0.76
testContainsMethod · 0.76
testIndexOfMethod · 0.76