@Test(expected = ConfigException.class) public void testNullDefault() { new ConfigDef().define("a", Type.INT, null, null, null, "docs"); }
public ConfigDef define(String name, Type type, Object defaultValue, Validator validator, Importance importance, String documentation) { if (configKeys.containsKey(name)) { throw new ConfigException("Configuration " + name + " is defined twice."); } Object parsedDefault = NO_DEFAULT_VALUE.equals(defaultValue) ? NO_DEFAULT_VALUE : parseType(name, defaultValue, type); configKeys .put(name, new ConfigKey(name, type, parsedDefault, validator, importance, documentation)); return this; }
ConfigDef { public ConfigDef define(String name, Type type, Object defaultValue, Validator validator, Importance importance, String documentation) { if (configKeys.containsKey(name)) { throw new ConfigException("Configuration " + name + " is defined twice."); } Object parsedDefault = NO_DEFAULT_VALUE.equals(defaultValue) ? NO_DEFAULT_VALUE : parseType(name, defaultValue, type); configKeys .put(name, new ConfigKey(name, type, parsedDefault, validator, importance, documentation)); return this; } }
ConfigDef { public ConfigDef define(String name, Type type, Object defaultValue, Validator validator, Importance importance, String documentation) { if (configKeys.containsKey(name)) { throw new ConfigException("Configuration " + name + " is defined twice."); } Object parsedDefault = NO_DEFAULT_VALUE.equals(defaultValue) ? NO_DEFAULT_VALUE : parseType(name, defaultValue, type); configKeys .put(name, new ConfigKey(name, type, parsedDefault, validator, importance, documentation)); return this; } ConfigDef();  ConfigDef(ConfigDef configDef); }
ConfigDef { public ConfigDef define(String name, Type type, Object defaultValue, Validator validator, Importance importance, String documentation) { if (configKeys.containsKey(name)) { throw new ConfigException("Configuration " + name + " is defined twice."); } Object parsedDefault = NO_DEFAULT_VALUE.equals(defaultValue) ? NO_DEFAULT_VALUE : parseType(name, defaultValue, type); configKeys .put(name, new ConfigKey(name, type, parsedDefault, validator, importance, documentation)); return this; } ConfigDef();  ConfigDef(ConfigDef configDef); Set<String> names(); ConfigDef define(String name, Type type, Object defaultValue, Validator validator,
                          Importance importance, String documentation); ConfigDef defineOverride(String name, Type type, Object defaultValue, Validator validator,
                                  Importance importance, String documentation); ConfigDef define(String name, Type type, Object defaultValue, Importance importance,
                          String documentation); ConfigDef defineOverride(String name, Type type, Object defaultValue, Importance importance,
                          String documentation); ConfigDef define(String name, Type type, Validator validator, Importance importance,
                          String documentation); ConfigDef defineOverride(String name, Type type, Validator validator, Importance importance,
                          String documentation); ConfigDef define(String name, Type type, Importance importance, String documentation); ConfigDef defineOverride(String name, Type type, Importance importance, String documentation); Map<String, Object> parse(Map<?, ?> props); String toHtmlTable(); String toRst(); }
ConfigDef { public ConfigDef define(String name, Type type, Object defaultValue, Validator validator, Importance importance, String documentation) { if (configKeys.containsKey(name)) { throw new ConfigException("Configuration " + name + " is defined twice."); } Object parsedDefault = NO_DEFAULT_VALUE.equals(defaultValue) ? NO_DEFAULT_VALUE : parseType(name, defaultValue, type); configKeys .put(name, new ConfigKey(name, type, parsedDefault, validator, importance, documentation)); return this; } ConfigDef();  ConfigDef(ConfigDef configDef); Set<String> names(); ConfigDef define(String name, Type type, Object defaultValue, Validator validator,
                          Importance importance, String documentation); ConfigDef defineOverride(String name, Type type, Object defaultValue, Validator validator,
                                  Importance importance, String documentation); ConfigDef define(String name, Type type, Object defaultValue, Importance importance,
                          String documentation); ConfigDef defineOverride(String name, Type type, Object defaultValue, Importance importance,
                          String documentation); ConfigDef define(String name, Type type, Validator validator, Importance importance,
                          String documentation); ConfigDef defineOverride(String name, Type type, Validator validator, Importance importance,
                          String documentation); ConfigDef define(String name, Type type, Importance importance, String documentation); ConfigDef defineOverride(String name, Type type, Importance importance, String documentation); Map<String, Object> parse(Map<?, ?> props); String toHtmlTable(); String toRst();  }