예제 #1
0
 /**
  * ** Sets the specified argument key to the specified String value. ** @param key The key of the
  * agrument ** @param value The value to set ** @param obfuscate True if the value should be
  * obfuscated ** @return True if the argument existed, else false
  */
 public boolean setArgValue(String key[], String value, boolean obfuscate) {
   if (ListTools.size(key) >= 1) {
     boolean hadArg = this.hasArg(key);
     // remove all but the first key
     for (int i = 1; i < key.length; i++) {
       this.removeArg(key[i]);
     }
     // set the first key
     this.setArgValue(key[0], value, obfuscate);
     return hadArg;
   } else {
     return false;
   }
 }
예제 #2
0
 /** ** Get size of TemperatureSet */
 public int getSize() {
   return ListTools.size(this.tempList);
 }