示例#1
0
文件: Parameters.java 项目: AKSW/SINA
 /** 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()));
 }
示例#2
0
文件: Parameters.java 项目: AKSW/SINA
 /** Returns a value for a boolean parameter */
 public static boolean getBoolean(String s) throws UndefinedParameterException {
   String v = get(s);
   return (!no.contains(v.toLowerCase()));
 }