Adds the specified element to self. @param element the element that needs to be added to the array.
(JsonElement element)
| 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. |