/** * Return the property under the given key as a float, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public float getFloatProperty(String key, float def) { String val = getProperty(key); return (val == null) ? def : Float.parseFloat(val); }
/** * Return the property under the given key as an int, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public int getIntProperty(String key, int def) { String val = getProperty(key); return (val == null) ? def : Integer.parseInt(val); }
/** * Return the property under the given key as a float, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public float getFloatProperty(String key, float def) { String val = getProperty(key); return (val == null) ? def : Float.parseFloat(val); }
/** * Return the property under the given key as an int, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public int getIntProperty(String key, int def) { String val = getProperty(key); return (val == null) ? def : Integer.parseInt(val); }
/** * Return the property under the given key as a double, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public double getDoubleProperty(String key, double def) { String val = getProperty(key); return (val == null) ? def : Double.parseDouble(val); }
/** * Return the property under the given key as an int, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public int getIntProperty(String key, int def) { String val = getProperty(key); return (val == null) ? def : Integer.parseInt(val); }
/** * Return the property under the given key as a double, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public double getDoubleProperty(String key, double def) { String val = getProperty(key); return (val == null) ? def : Double.parseDouble(val); }
/** * Return the property under the given key as a double, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public long getLongProperty(String key, long def) { String val = getProperty(key); return (val == null) ? def : Long.parseLong(val); }
/** * Return the property under the given key as a float, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public float getFloatProperty(String key, float def) { String val = getProperty(key); return (val == null) ? def : Float.parseFloat(val); }
/** * Return the property under the given key as an int, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public int getIntProperty(String key, int def) { String val = getProperty(key); return (val == null) ? def : Integer.parseInt(val); }
/** * Return the property under the given key as a double, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public long getLongProperty(String key, long def) { String val = getProperty(key); return (val == null) ? def : Long.parseLong(val); }
/** * Return the property under the given key as a double, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public double getDoubleProperty(String key, double def) { String val = getProperty(key); return (val == null) ? def : Double.parseDouble(val); }
/** * Return the property under the given key as a double, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public long getLongProperty(String key, long def) { String val = getProperty(key); return (val == null) ? def : Long.parseLong(val); }
/** * Return the property under the given key as a float, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public float getFloatProperty(String key, float def) { String val = getProperty(key); return (val == null) ? def : Float.parseFloat(val); }
/** * Return the property under the given key as a double, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public double getDoubleProperty(String key, double def) { String val = getProperty(key); return (val == null) ? def : Double.parseDouble(val); }
/** * Return the property under the given key as a double, or the given * default if it does not exist. * * @throws NumberFormatException on parse error */ public long getLongProperty(String key, long def) { String val = getProperty(key); return (val == null) ? def : Long.parseLong(val); }
/** * Return the property under the given key as a boolean, or the given * default if it does not exist. */ public boolean getBooleanProperty(String key, boolean def) { String val = getProperty(key); if (val == null) return def; return "t".equalsIgnoreCase(val) || "true".equalsIgnoreCase(val); }
/** * Return the property under the given key as a boolean, or the given * default if it does not exist. */ public boolean getBooleanProperty(String key, boolean def) { String val = getProperty(key); if (val == null) return def; return "t".equalsIgnoreCase(val) || "true".equalsIgnoreCase(val); }
/** * Return the property under the given key as a boolean, or the given * default if it does not exist. */ public boolean getBooleanProperty(String key, boolean def) { String val = getProperty(key); if (val == null) return def; return "t".equalsIgnoreCase(val) || "true".equalsIgnoreCase(val); }
/** * Return the property under the given key as a boolean, or the given * default if it does not exist. */ public boolean getBooleanProperty(String key, boolean def) { String val = getProperty(key); if (val == null) return def; return "t".equalsIgnoreCase(val) || "true".equalsIgnoreCase(val); }