convenience method to get this element as a primitive double. @return get this element as a primitive double. @throws NumberFormatException if the value contained is not a valid double.
()
| 198 | * @throws NumberFormatException if the value contained is not a valid double. |
| 199 | */ |
| 200 | @Override |
| 201 | public double getAsDouble() { |
| 202 | return isNumber() ? getAsNumber().doubleValue() : Double.parseDouble(getAsString()); |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * convenience method to get this element as a {@link BigDecimal}. |