Convenience method to get this array as a primitive short if it contains a single element. This method calls {@link JsonElement#getAsShort()} on the element, therefore any of the exceptions declared by that method can occur. @return this element as a primitive short if it is single element array. @
()
| 384 | * @throws IllegalStateException if the array is empty or has more than one element. |
| 385 | */ |
| 386 | @Override |
| 387 | public short getAsShort() { |
| 388 | return getAsSingleElement().getAsShort(); |
| 389 | } |
| 390 | |
| 391 | /** |
| 392 | * Convenience method to get this array as a boolean if it contains a single element. This method |
nothing calls this directly
no test coverage detected