Exemple #1
0
 /** Returns a value for a boolean parameter, returning a default value by default */
 public static boolean getBoolean(String s, boolean defaultValue) {
   String v = get(s, defaultValue ? "yes" : "no");
   return (!no.contains(v.toLowerCase()));
 }
Exemple #2
0
 /** Returns a value for a boolean parameter */
 public static boolean getBoolean(String s) throws UndefinedParameterException {
   String v = get(s);
   return (!no.contains(v.toLowerCase()));
 }