Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @param key key
  * @param defaultValue default value
  */
 public IntConfOption(String key, long defaultValue) {
   super(key);
   this.defaultValue = (int) defaultValue;
   AllOptions.add(this);
 }
 /**
  * Constructor
  *
  * @param key configuration key
  * @param defaultValue default value
  */
 public BooleanConfOption(String key, boolean defaultValue) {
   super(key);
   this.defaultValue = defaultValue;
   AllOptions.add(this);
 }
 /**
  * Private constructor
  *
  * @param key Key
  * @param defaultClass default class
  * @param interfaceClass interface class
  */
 private ClassConfOption(String key, Class<? extends C> defaultClass, Class<C> interfaceClass) {
   super(key);
   this.defaultClass = defaultClass;
   this.interfaceClass = interfaceClass;
   AllOptions.add(this);
 }