@Test void testEquals() { String prefix0 = "prefix0"; String prefix1 = "prefix1"; String uri0 = "uri0"; String uri1 = "uri1"; ProxyPackage ns0 = ProxyPackage.Registry.getInstance().register(prefix0, uri0); ProxyPackage ns0Bis = ProxyPackage.Registry.getInstance().register(prefix0, uri0); ProxyPackage ns1 = ProxyPackage.Registry.getInstance().register(prefix1, uri1); assertThat(ns0).isSameAs(ns0Bis); assertThat(ns0).isNotSameAs(ns1).isNotEqualTo(ns1); assertThat(ns1).isNotSameAs(ns0Bis).isNotEqualTo(ns0Bis); assertThat(ns0).isEqualTo(ns0); assertThat(ns0).isNotEqualTo(null); assertThat(ns0).isNotEqualTo(0); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProxyPackage that = (ProxyPackage) o; return Objects.equals(uri, that.uri); }
ProxyPackage implements Proxy<ProxyPackage, EPackage> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProxyPackage that = (ProxyPackage) o; return Objects.equals(uri, that.uri); } }
ProxyPackage implements Proxy<ProxyPackage, EPackage> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProxyPackage that = (ProxyPackage) o; return Objects.equals(uri, that.uri); } private  ProxyPackage(String prefix, String uri); }
ProxyPackage implements Proxy<ProxyPackage, EPackage> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProxyPackage that = (ProxyPackage) o; return Objects.equals(uri, that.uri); } private  ProxyPackage(String prefix, String uri); @Override EPackage getOrigin(); @Nonnull @Override ProxyPackage setOrigin(EPackage ePackage); @Nonnull String getPrefix(); @Nonnull String getUri(); @Override int hashCode(); @Override boolean equals(@Nullable Object o); @Override String toString(); }
ProxyPackage implements Proxy<ProxyPackage, EPackage> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProxyPackage that = (ProxyPackage) o; return Objects.equals(uri, that.uri); } private  ProxyPackage(String prefix, String uri); @Override EPackage getOrigin(); @Nonnull @Override ProxyPackage setOrigin(EPackage ePackage); @Nonnull String getPrefix(); @Nonnull String getUri(); @Override int hashCode(); @Override boolean equals(@Nullable Object o); @Override String toString(); @Nonnull
    static final ProxyPackage DEFAULT; }