@Test public void equality() { new EqualsTester() .addEqualityGroup(defineProperty("foo", STRING, "bar", "Desc"), defineProperty("foo", STRING, "goo", "Desc")) .addEqualityGroup(defineProperty("bar", STRING, "bar", "Desc"), defineProperty("bar", STRING, "goo", "Desc")) .testEquals(); }
public static ConfigProperty defineProperty(String name, Type type, String defaultValue, String description) { return new ConfigProperty(name, type, description, defaultValue, defaultValue, false); }
ConfigProperty { public static ConfigProperty defineProperty(String name, Type type, String defaultValue, String description) { return new ConfigProperty(name, type, description, defaultValue, defaultValue, false); } }
ConfigProperty { public static ConfigProperty defineProperty(String name, Type type, String defaultValue, String description) { return new ConfigProperty(name, type, description, defaultValue, defaultValue, false); } private  ConfigProperty(String name, Type type, String description,
                           String defaultValue, String value, boolean isSet); }
ConfigProperty { public static ConfigProperty defineProperty(String name, Type type, String defaultValue, String description) { return new ConfigProperty(name, type, description, defaultValue, defaultValue, false); } private  ConfigProperty(String name, Type type, String description,
                           String defaultValue, String value, boolean isSet); static ConfigProperty defineProperty(String name, Type type,
                                                String defaultValue,
                                                String description); static ConfigProperty setProperty(ConfigProperty property, String newValue); static ConfigProperty resetProperty(ConfigProperty property); String name(); Type type(); String description(); String defaultValue(); String value(); boolean isSet(); String asString(); byte asByte(); int asInteger(); long asLong(); float asFloat(); double asDouble(); boolean asBoolean(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ConfigProperty { public static ConfigProperty defineProperty(String name, Type type, String defaultValue, String description) { return new ConfigProperty(name, type, description, defaultValue, defaultValue, false); } private  ConfigProperty(String name, Type type, String description,
                           String defaultValue, String value, boolean isSet); static ConfigProperty defineProperty(String name, Type type,
                                                String defaultValue,
                                                String description); static ConfigProperty setProperty(ConfigProperty property, String newValue); static ConfigProperty resetProperty(ConfigProperty property); String name(); Type type(); String description(); String defaultValue(); String value(); boolean isSet(); String asString(); byte asByte(); int asInteger(); long asLong(); float asFloat(); double asDouble(); boolean asBoolean(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }