Convenience method to get this array as a float if it contains a single element. This method calls {@link JsonElement#getAsFloat()} on the element, therefore any of the exceptions declared by that method can occur. @return this element as a float if it is single element array. @throws IllegalStateE
()
| 316 | * @throws IllegalStateException if the array is empty or has more than one element. |
| 317 | */ |
| 318 | @Override |
| 319 | public float getAsFloat() { |
| 320 | return getAsSingleElement().getAsFloat(); |
| 321 | } |
| 322 | |
| 323 | /** |
| 324 | * Convenience method to get this array as a long if it contains a single element. This method |
nothing calls this directly
no test coverage detected