예제 #1
0
 /**
  * Get an option as a boolean. Note that {@link Boolean#valueOf(String)} is used for parsing -its
  * policy of what is true vs false applies.
  *
  * @param option name
  * @param defVal default
  * @return the option.
  */
 public boolean getOptionBool(String option, boolean defVal) {
   return Boolean.valueOf(getOption(option, Boolean.toString(defVal)));
 }
예제 #2
0
 /**
  * Set a boolean option
  *
  * @param option option name
  * @param val bool value
  */
 public void setOption(String option, boolean val) {
   setOption(option, Boolean.toString(val));
 }