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

Method asList

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

Returns a mutable List view of this JsonArray. Changes to the List are visible in this JsonArray and the other way around. The List does not permit null elements. Unlike JsonArray's null handling, a NullPointerException is t

()

Source from the content-addressed store, hash-verified

413 * @since 2.10
414 */
415 public List<JsonElement> asList() {
416 return new NonNullElementWrapperList<>(elements);
417 }
418
419 /**
420 * Returns whether the other object is equal to this. This method only considers the other object

Callers 15

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
testIndexOfMethod · 0.95
testSpliteratorMethod · 0.95
testSortMethod · 0.95

Calls

no outgoing calls

Tested by 15

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
testSpliteratorMethod · 0.76
testSortMethod · 0.76