@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new ConfigKey("cat", String.class, "naam", "nick", "bijnaam", true, ConfigKey.Scope.Cluster), new ConfigKey("hond", Boolean.class, "naam", "truus", "thrown name", false), new ConfigKey(Long.class, "naam", "vis", "goud", "zwemt", true, ConfigKey.Scope.Account, 3L) ) .testEquals(); }
@Override public boolean equals(final Object obj) { if (obj instanceof ConfigKey) { final ConfigKey<?> that = (ConfigKey<?>) obj; return this._name.equals(that._name); } return false; }
ConfigKey { @Override public boolean equals(final Object obj) { if (obj instanceof ConfigKey) { final ConfigKey<?> that = (ConfigKey<?>) obj; return this._name.equals(that._name); } return false; } }
ConfigKey { @Override public boolean equals(final Object obj) { if (obj instanceof ConfigKey) { final ConfigKey<?> that = (ConfigKey<?>) obj; return this._name.equals(that._name); } return false; } ConfigKey(final String category, final Class<T> type, final String name, final String defaultValue, final String description, final boolean isDynamic,
                     final Scope scope);  ConfigKey(final Class<T> type, final String name, final String category, final String defaultValue, final String description, final boolean isDynamic,
                     final Scope scope, final T multiplier);  ConfigKey(final String category, final Class<T> type, final String name, final String defaultValue, final String description, final boolean isDynamic); @Deprecated  ConfigKey(final Class<T> type, final String name, final String category, final String defaultValue, final String description, final boolean isDynamic); }
ConfigKey { @Override public boolean equals(final Object obj) { if (obj instanceof ConfigKey) { final ConfigKey<?> that = (ConfigKey<?>) obj; return this._name.equals(that._name); } return false; } ConfigKey(final String category, final Class<T> type, final String name, final String defaultValue, final String description, final boolean isDynamic,
                     final Scope scope);  ConfigKey(final Class<T> type, final String name, final String category, final String defaultValue, final String description, final boolean isDynamic,
                     final Scope scope, final T multiplier);  ConfigKey(final String category, final Class<T> type, final String name, final String defaultValue, final String description, final boolean isDynamic); @Deprecated  ConfigKey(final Class<T> type, final String name, final String category, final String defaultValue, final String description, final boolean isDynamic); static void init(final ConfigDepotImpl depot); String category(); Class<T> type(); final String key(); String defaultValue(); String description(); Scope scope(); boolean isDynamic(); T multiplier(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); boolean isSameKeyAs(final Object obj); T value(); T valueIn(final Long id); }
ConfigKey { @Override public boolean equals(final Object obj) { if (obj instanceof ConfigKey) { final ConfigKey<?> that = (ConfigKey<?>) obj; return this._name.equals(that._name); } return false; } ConfigKey(final String category, final Class<T> type, final String name, final String defaultValue, final String description, final boolean isDynamic,
                     final Scope scope);  ConfigKey(final Class<T> type, final String name, final String category, final String defaultValue, final String description, final boolean isDynamic,
                     final Scope scope, final T multiplier);  ConfigKey(final String category, final Class<T> type, final String name, final String defaultValue, final String description, final boolean isDynamic); @Deprecated  ConfigKey(final Class<T> type, final String name, final String category, final String defaultValue, final String description, final boolean isDynamic); static void init(final ConfigDepotImpl depot); String category(); Class<T> type(); final String key(); String defaultValue(); String description(); Scope scope(); boolean isDynamic(); T multiplier(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); boolean isSameKeyAs(final Object obj); T value(); T valueIn(final Long id);  }