Ejemplo n.º 1
0
 protected static void set(
     Config rc, String section, String subsection, String name, boolean value) {
   if (value) {
     rc.setBoolean(section, subsection, name, value);
   } else {
     rc.unset(section, subsection, name);
   }
 }
Ejemplo n.º 2
0
 protected static <E extends Enum<?>> void set(
     Config rc, String section, String subsection, String name, E value, E defaultValue) {
   if (value != defaultValue) {
     rc.setEnum(section, subsection, name, value);
   } else {
     rc.unset(section, subsection, name);
   }
 }
Ejemplo n.º 3
0
 protected static void set(
     Config rc, String section, String subsection, String name, String value) {
   if (value != null) {
     rc.setString(section, subsection, name, value);
   } else {
     rc.unset(section, subsection, name);
   }
 }