Gets a double property via a string property name.

@param pName        - the property name
@param defaultValue - the default property value
@return a double property
492019
public double getDouble(String pName, double defaultValue) {
        String pValue = _properties.getProperty(pName);
        return parseDouble(pName, pValue, defaultValue);
    }
856156
public Double getDoubleProperty(String property, boolean required) {
		Double doubleValue = null;
		String value = getProperty(property, required);
		if (value != null) {
			try {
				doubleValue = Double.valueOf(value);
			} catch (NumberFormatException e) {
				throw new GeoPackageException(GEOPACKAGE_PROPERTIES_FILE
						+ " property file property '" + property
						+ "' must be a double");
			}
		}
		return doubleValue;
	}
1054530
public static String get(String name, String defaultValue) {
		return StrUtil.nullToDefault(get(name, false), defaultValue);
	}
824397
public double getDouble( String key, double defaultValue )
        throws MissingResourceException
    {
        try
        {
            return getDouble( key );
        }
        catch( MissingResourceException mre )
        {
            return defaultValue;
        }
    }
126846
public String get(String key, String defaultValue) {
        String v = get(key);
        if (v==null)    v=defaultValue;
        return v;
    }
372342
private static int getProperty(String prefix, String name, int defaultValue) {
        int result = defaultValue;

        try {
            result = Integer.parseInt(System.getProperty(prefix + name));
        } catch (NumberFormatException e) {
            LOG.warn("Value for " + prefix + name + " must be an integer. Using default " + defaultValue);
        }
        return result;
    }
457560
public float getFloat(String columnName, float defaultValue) {
        int index = getColumnIndex(columnName);
        if (isValidIndex(index)) {
            return getFloat(index);
        } else {
            return defaultValue;
        }
    }
191409
public String getConfigProperty(String propertyName, String defaultValue) {
        return getConfig().getString(propertyName, defaultValue);
    }
906618
public Double getDouble(String name) {
        //let it fail in the more general case where it isn't actually a number
        Number number = (Number) content.get(name);
        if (number == null) {
            return null;
        } else if (number instanceof Double) {
            return (Double) number;
        } else {
            return number.doubleValue(); //autoboxing to Double
        }
    }
854571
public Float getFloatProperty(String key, Float defaultValue) {
        String val = getProperty(key, defaultValue.toString());
        try {
            Float intVal = Float.parseFloat(val);
            return intVal;
        } catch (NumberFormatException e) {
            return defaultValue;
        }
    }
475800
private double getDouble( int idx, double defaultValue, CssFormatter formatter ) {
        if( parameters.size() <= idx ) {
            return defaultValue;
        }
        return parameters.get( idx ).doubleValue( formatter );
    }
50980
@Pure
	public DoubleProperty x2Property() {
		if (this.p2.x == null) {
			this.p2.x = new SimpleDoubleProperty(this, MathFXAttributeNames.X2);
		}
		return this.p2.x;
	}
695261
public static Double getPropertyDouble(String key, Double aDefault)
	{
		return getSettings().getPropertyDouble(key, aDefault);
	}
427334
public double getDouble(String name, double defaultVal){
        if(this.configuration.containsKey(name)){
            return this.configuration.getDouble(name);
        } else {
            return defaultVal;
        }
    }
505318
public double getDouble(String columnName, double defaultValue) {
        int index = getColumnIndex(columnName);
        if (isValidIndex(index)) {
            return getDouble(index);
        } else {
            return defaultValue;
        }
    }
466370
public static Long getLong(String propertyName, String envName, Long defaultValue) {
		checkEnvName(envName);
		Long propertyValue = NumberUtil.toLongObject(System.getProperty(propertyName), null);
		if (propertyValue != null) {
			return propertyValue;
		} else {
			propertyValue = NumberUtil.toLongObject(System.getenv(envName), null);
			return propertyValue != null ? propertyValue : defaultValue;
		}
	}
325803
public static long getPropertyAsLong(Properties props, String propertyName, long defaultValue) {
        String value = props.getProperty(propertyName, "").trim();
        if (value.isEmpty()) {
            return defaultValue;
        }
        try {
            long val = Long.parseLong(value);
            if (val <= 0) {
                throw new IllegalArgumentException(
                        "Value of " + propertyName + " should be positive, but current value is " + val);
            }
            return val;
        } catch (NumberFormatException e) {
            throw new IllegalArgumentException(
                    "Property " + propertyName + " must be a number in Kinesis importer configuration.");
        }
    }