convenience method to get this element as a primitive long. @return get this element as a primitive long. @throws NumberFormatException if the value contained is not a valid long.
()
| 242 | * @throws NumberFormatException if the value contained is not a valid long. |
| 243 | */ |
| 244 | @Override |
| 245 | public long getAsLong() { |
| 246 | return isNumber() ? getAsNumber().longValue() : Long.parseLong(getAsString()); |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * convenience method to get this element as a primitive short. |