@Test(expected = CloudRuntimeException.class) public void testIsSameKeyAsThrowingCloudRuntimeException() { final ConfigKey key = new ConfigKey("hond", Boolean.class, "naam", "truus", "thrown name", false); Assert.assertFalse("zero and 0L should be considdered the same address", key.isSameKeyAs(0L)); }
public boolean isSameKeyAs(final Object obj) { if (this.equals(obj)) { return true; } else if (obj instanceof String) { final String key = (String) obj; return key.equals(_name); } throw new CloudRuntimeException("Comparing ConfigKey to " + obj.toString()); }
ConfigKey { public boolean isSameKeyAs(final Object obj) { if (this.equals(obj)) { return true; } else if (obj instanceof String) { final String key = (String) obj; return key.equals(_name); } throw new CloudRuntimeException("Comparing ConfigKey to " + obj.toString()); } }
ConfigKey { public boolean isSameKeyAs(final Object obj) { if (this.equals(obj)) { return true; } else if (obj instanceof String) { final String key = (String) obj; return key.equals(_name); } throw new CloudRuntimeException("Comparing ConfigKey to " + obj.toString()); } 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 { public boolean isSameKeyAs(final Object obj) { if (this.equals(obj)) { return true; } else if (obj instanceof String) { final String key = (String) obj; return key.equals(_name); } throw new CloudRuntimeException("Comparing ConfigKey to " + obj.toString()); } 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 { public boolean isSameKeyAs(final Object obj) { if (this.equals(obj)) { return true; } else if (obj instanceof String) { final String key = (String) obj; return key.equals(_name); } throw new CloudRuntimeException("Comparing ConfigKey to " + obj.toString()); } 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);  }