convenience method to get this element as a primitive short. @return get this element as a primitive short. @throws NumberFormatException if the value contained is not a valid short value.
()
| 253 | * @throws NumberFormatException if the value contained is not a valid short value. |
| 254 | */ |
| 255 | @Override |
| 256 | public short getAsShort() { |
| 257 | return isNumber() ? getAsNumber().shortValue() : Short.parseShort(getAsString()); |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * convenience method to get this element as a primitive integer. |