protected double _parseDouble(String key) throws IllegalArgumentException { return NumberInput.parseDouble(key); }
/** * @since 1.6 */ public static double parseAsDouble(String input, double defaultValue) { if (input == null) { return defaultValue; } input = input.trim(); int len = input.length(); if (len == 0) { return defaultValue; } try { return parseDouble(input); } catch (NumberFormatException e) { } return defaultValue; }
/** * Convenience method for converting contents of the buffer * into a Double value. */ public double contentsAsDouble() throws NumberFormatException { return NumberInput.parseDouble(contentsAsString()); }
return (int) parseDouble(input); } catch (NumberFormatException e) { return defaultValue;
return (long) parseDouble(input); } catch (NumberFormatException e) { return defaultValue;
protected double _parseDouble(String key) throws IllegalArgumentException { return NumberInput.parseDouble(key); }
/** * @since 1.6 */ public static double parseAsDouble(String input, double defaultValue) { if (input == null) { return defaultValue; } input = input.trim(); int len = input.length(); if (len == 0) { return defaultValue; } try { return parseDouble(input); } catch (NumberFormatException e) { } return defaultValue; }
/** * Convenience method for converting contents of the buffer * into a Double value. */ public double contentsAsDouble() throws NumberFormatException { return NumberInput.parseDouble(contentsAsString()); }
return (int) parseDouble(input); } catch (NumberFormatException e) { return defaultValue;
return (long) parseDouble(input); } catch (NumberFormatException e) { return defaultValue;
protected double _parseDouble(String key) throws IllegalArgumentException { return NumberInput.parseDouble(key); }
protected double _parseDouble(String key) throws IllegalArgumentException { return NumberInput.parseDouble(key); }
protected double _parseDouble(String key) throws IllegalArgumentException { return NumberInput.parseDouble(key); }
/** * @since 1.6 */ public static double parseAsDouble(String input, double defaultValue) { if (input == null) { return defaultValue; } input = input.trim(); int len = input.length(); if (len == 0) { return defaultValue; } try { return parseDouble(input); } catch (NumberFormatException e) { } return defaultValue; }
/** * @since 1.6 */ public static double parseAsDouble(String input, double defaultValue) { if (input == null) { return defaultValue; } input = input.trim(); int len = input.length(); if (len == 0) { return defaultValue; } try { return parseDouble(input); } catch (NumberFormatException e) { } return defaultValue; }
/** * Convenience method for converting contents of the buffer * into a Double value. */ public double contentsAsDouble() throws NumberFormatException { return NumberInput.parseDouble(contentsAsString()); }
/** * Convenience method for converting contents of the buffer * into a Double value. */ public double contentsAsDouble() throws NumberFormatException { return NumberInput.parseDouble(contentsAsString()); }
return (long) parseDouble(input); } catch (NumberFormatException e) { return defaultValue;
return (int) parseDouble(input); } catch (NumberFormatException e) { return defaultValue;
@Override public long getLongValue() throws IOException, JsonParseException { return VALUE_STRING == getCurrentToken() ? Double.doubleToRawLongBits(NumberInput.parseDouble(getText())) : super.getLongValue(); } }