Returns the i-th element of the array. @param i the index of the element that is being sought. @return the element present at the i-th index. @throws IndexOutOfBoundsException if {@code i} is negative or greater than or equal to the {@link #size()} of the array.
(int i)
| 229 | * {@link #size()} of the array. |
| 230 | */ |
| 231 | public JsonElement get(int i) { |
| 232 | return elements.get(i); |
| 233 | } |
| 234 | |
| 235 | private JsonElement getAsSingleElement() { |
| 236 | int size = elements.size(); |