/** * Reads given property. If not found, or the value is empty string then throws a {@link * MissingParameterException}. Empty string is not accepted as false due to the similar function * of {@link #contains} which returns true in that case. True is returned if the lowercase value * of the property is "true", otherwise false is returned. * * @param name Name of configuration property */ public static boolean getBoolean(String name) { return config.getBoolean(name); }
/** * Reads given configuration property. If not found, throws a {@link MissingParameterException}. * * @param name Name of configuration property * @param def default value */ public static boolean getBoolean(String name, boolean def) { return config.getBoolean(name, def); }