convenience method to get this element as a primitive integer. @return get this element as a primitive integer. @throws NumberFormatException if the value contained is not a valid integer.
()
| 264 | * @throws NumberFormatException if the value contained is not a valid integer. |
| 265 | */ |
| 266 | @Override |
| 267 | public int getAsInt() { |
| 268 | return isNumber() ? getAsNumber().intValue() : Integer.parseInt(getAsString()); |
| 269 | } |
| 270 | |
| 271 | @Override |
| 272 | public byte getAsByte() { |