Replaces the element at the specified position in this array with the specified element. @param index index of the element to replace @param element element to be stored at the specified position @return the element previously at the specified position @throws IndexOutOfBoundsException if the speci
(int index, JsonElement element)
| 147 | * @throws IndexOutOfBoundsException if the specified index is outside the array bounds |
| 148 | */ |
| 149 | @CanIgnoreReturnValue |
| 150 | public JsonElement set(int index, JsonElement element) { |
| 151 | return elements.set(index, element == null ? JsonNull.INSTANCE : element); |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Removes the first occurrence of the specified element from this array, if it is present. If the |
no outgoing calls