@Test void testEquals() { String name0 = "mc0"; String name1 = "mc1"; ProxyPackage ns0 = ProxyPackage.DEFAULT; ProxyClass mc0 = new ProxyClass(ns0, name0); ProxyClass mc0Bis = new ProxyClass(ns0, name0); ProxyClass mc1 = new ProxyClass(ns0, name1); assertThat(mc0).isEqualTo(mc0Bis); assertThat(mc0).isNotEqualTo(mc1); assertThat(mc1).isNotEqualTo(mc0Bis); assertThat(mc0).isEqualTo(mc0); assertThat(mc0).isNotEqualTo(null); assertThat(mc0).isNotEqualTo(0); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } ProxyClass that = (ProxyClass) o; return Objects.equals(ns, that.ns); }
ProxyClass extends AbstractNamedElement<ProxyClass> implements Proxy<ProxyClass, EClass> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } ProxyClass that = (ProxyClass) o; return Objects.equals(ns, that.ns); } }
ProxyClass extends AbstractNamedElement<ProxyClass> implements Proxy<ProxyClass, EClass> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } ProxyClass that = (ProxyClass) o; return Objects.equals(ns, that.ns); } ProxyClass(EClass eClass);  ProxyClass(ProxyPackage ns);  ProxyClass(ProxyPackage ns, @Nullable String name); }
ProxyClass extends AbstractNamedElement<ProxyClass> implements Proxy<ProxyClass, EClass> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } ProxyClass that = (ProxyClass) o; return Objects.equals(ns, that.ns); } ProxyClass(EClass eClass);  ProxyClass(ProxyPackage ns);  ProxyClass(ProxyPackage ns, @Nullable String name); @Override EClass getOrigin(); @Nonnull @Override ProxyClass setOrigin(EClass eClass); @Nonnull ProxyPackage getNamespace(); @Override int hashCode(); @Override boolean equals(@Nullable Object o); @Override String toString(); }
ProxyClass extends AbstractNamedElement<ProxyClass> implements Proxy<ProxyClass, EClass> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } ProxyClass that = (ProxyClass) o; return Objects.equals(ns, that.ns); } ProxyClass(EClass eClass);  ProxyClass(ProxyPackage ns);  ProxyClass(ProxyPackage ns, @Nullable String name); @Override EClass getOrigin(); @Nonnull @Override ProxyClass setOrigin(EClass eClass); @Nonnull ProxyPackage getNamespace(); @Override int hashCode(); @Override boolean equals(@Nullable Object o); @Override String toString(); @Nonnull
    static final ProxyClass DEFAULT; }