Example #1
0
 public boolean hasIntParam(String key) {
   if (this.hasParam(key)) {
     try {
       Long val = Long.valueOf(this.params.get(key));
       if (val != null) return (true);
     } catch (NumberFormatException ex) {
       // Nothing...
     }
   }
   return (false);
 }
Example #2
0
 public Long getLongParam(String key) {
   String val = this.params.get(key);
   Long ret = null;
   if (val != null) ret = Long.valueOf(val);
   return (ret);
 }