Пример #1
0
 public boolean hasBooleanParam(String key) {
   if (this.hasParam(key)) {
     Boolean val = Boolean.valueOf(this.params.get(key));
     if (val != null) return (true);
   }
   return (false);
 }
Пример #2
0
 public Boolean getBooleanParam(String key, Boolean defaultValue) {
   String val = this.params.get(key);
   Boolean ret = defaultValue;
   if (val != null) ret = Boolean.valueOf(val);
   return (ret);
 }