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

Method add

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

Adds the specified element to self. @param element the element that needs to be added to the array.

(JsonElement element)

Source from the content-addressed store, hash-verified

48 * @param element the element that needs to be added to the array.
49 */
50 public void add(JsonElement element) {
51 if (element == null) {
52 element = JsonNull.createJsonNull();
53 }
54 elements.add(element);
55 }
56
57 /**
58 * Adds all the elements of the specified array to self.

Calls 1

createJsonNullMethod · 0.95