/* (non-Javadoc)
@see nyla.solutions.core.util.Settings#getPropertyDouble(java.lang.Class, java.lang.String)
165029
@Override
	public Double getPropertyDouble(Class<?> cls, String key)
	{
		return getPropertyDouble(new StringBuilder(cls.getName()).append(".").append(key).toString());

	}
1313989
public static double getDouble(JSONValue value) {
        if (value == null)
            return 0;
        if (!(value instanceof Number))
            throw new JSONException(NOT_A_NUMBER);
        return ((Number)value).doubleValue();
    }
92458
public Double getDouble(String name) {
        Object o = get(name);
        if (o instanceof Number) {
            return ((Number)o).doubleValue();
        }

        if (o != null) {
            try {
                String string = o.toString();
                if (string != null) {
                    return Double.parseDouble(string);
                }
            }
            catch (NumberFormatException e) {}
        }
        return null;
    }
935837
@Override
    public Double getDoubleOrDie(String key) {
        Double value = getDouble(key);
        if (value == null) {
            throw new IllegalArgumentException(String.format(ERROR_KEYNOTFOUND, key));
        } else {
            return value;
        }
    }
524187
public static double getDouble(@NotNull ServletRequest request, @NotNull String param) {
    return getDouble(request, param, 0d);
  }
67515
@NonNull
    @Override
    public MutableDocument setDouble(@NonNull String key, double value) {
        return setValue(key, value);
    }
706569
@Override
	public double getDouble(String fldName) throws RemoteException {
		try {
			fldName = fldName.toLowerCase(); // to ensure case-insensitivity
			return (Double) s.getVal(fldName).castTo(DOUBLE).asJavaVal();
		} catch (RuntimeException e) {
			rconn.rollback();
			throw e;
		}
	}
1058865
public double getDouble( String key )
        throws MissingResourceException
    {
        ResourceBundle bundle = getBundle();
        String value = bundle.getString( key );
        try
        {
            return Double.parseDouble( value );
        }
        catch( NumberFormatException nfe )
        {
            throw new MissingResourceException( "Expecting a double value but got " + value,
                                                "java.lang.String",
                                                key
            );
        }
    }
198521
public static final Double getDouble(InputStream is) throws IOException
   {
      double result = Double.longBitsToDouble(getLong(is));
      if (Double.isNaN(result))
      {
         result = 0;
      }
      return Double.valueOf(result);
   }
492019
public double getDouble(String pName, double defaultValue) {
        String pValue = _properties.getProperty(pName);
        return parseDouble(pName, pValue, defaultValue);
    }
325695
public static Double getPropertyDouble(Class<?> cls, String key)
	{
		return getSettings().getPropertyDouble(cls, key);

	}
809771
public Double getDouble(String key, String group, Double defaultValue) {
		return Convert.toDouble(getByGroup(key, group), defaultValue);
	}
361513
public static double getDouble(@NonNull SharedPreferences prefs,
            @NonNull String key, double defaultValue) {
        long bits = prefs.getLong(key, Double.doubleToLongBits(defaultValue));
        return Double.longBitsToDouble(bits);
    }
486657
public double getDouble(String key) {
		addToDefaults(key, null);
		String value = getRequired(key);
		return Double.valueOf(value);
	}
786687
public static Double getDouble(String propertyName) {
		return NumberUtil.toDoubleObject(System.getProperty(propertyName), null);
	}
1350663
public static double getDouble(SharedPreferences preferences, String key, double defaultValue) {
        String stored = preferences.getString(key, null);
        if (TextUtils.isEmpty(stored)) {
            return defaultValue;
        }
        return Double.parseDouble(stored);
    }
1146175
@Override
    public double getDouble(@NonNull String key) {
        if (key == null) { throw new IllegalArgumentException("key cannot be null."); }

        synchronized (lock) {
            return CBLConverter.asDouble(getMValue(internalDict, key), internalDict);
        }
    }