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

Method remove

gson/src/main/java/com/google/gson/JsonArray.java:162–165  ·  view source on GitHub ↗

Removes the first occurrence of the specified element from this array, if it is present. If the array does not contain the element, it is unchanged. @param element element to be removed from this array, if present @return true if this array contained the specified element, false otherwise @since 2.

(JsonElement element)

Source from the content-addressed store, hash-verified

160 * @since 2.3
161 */
162 @CanIgnoreReturnValue
163 public boolean remove(JsonElement element) {
164 return elements.remove(element);
165 }
166
167 /**
168 * Removes the element at the specified position in this array. Shifts any subsequent elements to

Callers 15

testRemoveMethod · 0.95
testIsEmptyMethod · 0.95
testKeySetMethod · 0.45
testEntrySetMethod · 0.45
testRemoveIndexMethod · 0.45
testRemoveElementMethod · 0.45
testRemoveMethod · 0.45
testKeySetMethod · 0.45
testValuesMethod · 0.45
testEntrySetMethod · 0.45

Calls

no outgoing calls

Tested by 15

testRemoveMethod · 0.76
testIsEmptyMethod · 0.76
testKeySetMethod · 0.36
testEntrySetMethod · 0.36
testRemoveIndexMethod · 0.36
testRemoveElementMethod · 0.36
testRemoveMethod · 0.36
testKeySetMethod · 0.36
testValuesMethod · 0.36
testEntrySetMethod · 0.36