@Test void testHashCode() { 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.hashCode()).isEqualTo(ns0Bis.hashCode()); assertThat(ns0.hashCode()).isNotEqualTo(ns1.hashCode()); assertThat(ns1.hashCode()).isNotEqualTo(ns0Bis.hashCode()); }
@Override public int hashCode() { return Objects.hash(uri); }
ProxyPackage implements Proxy<ProxyPackage, EPackage> { @Override public int hashCode() { return Objects.hash(uri); } }
ProxyPackage implements Proxy<ProxyPackage, EPackage> { @Override public int hashCode() { return Objects.hash(uri); } private  ProxyPackage(String prefix, String uri); }
ProxyPackage implements Proxy<ProxyPackage, EPackage> { @Override public int hashCode() { return Objects.hash(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 int hashCode() { return Objects.hash(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; }