@Test void testHashCode() { ProxyElement elt0 = new ProxyElement(); elt0.setId(ProxyValue.resolved(Id.getProvider().fromLong(42))); ProxyElement elt0Bis = new ProxyElement(); elt0Bis.setId(ProxyValue.resolved(Id.getProvider().fromLong(42))); ProxyElement elt1 = new ProxyElement(); elt1.setId(ProxyValue.resolved(Id.getProvider().fromLong(44))); assertThat(elt0.hashCode()).isEqualTo(elt0Bis.hashCode()); assertThat(elt0.hashCode()).isNotEqualTo(elt1.hashCode()); assertThat(elt1.hashCode()).isNotEqualTo(elt0Bis.hashCode()); }
@Override public int hashCode() { return Objects.hash(id); }
ProxyElement extends AbstractNamedElement<ProxyElement> { @Override public int hashCode() { return Objects.hash(id); } }
ProxyElement extends AbstractNamedElement<ProxyElement> { @Override public int hashCode() { return Objects.hash(id); }  }
ProxyElement extends AbstractNamedElement<ProxyElement> { @Override public int hashCode() { return Objects.hash(id); }  @Nonnull ProxyValue<Id> getId(); @Nonnull ProxyElement setId(ProxyValue<Id> id); ProxyClass getMetaClass(); @Nonnull ProxyElement setMetaClass(ProxyClass metaClass); boolean isRoot(); @Nonnull ProxyElement setRoot(boolean isRoot); @Override int hashCode(); @Override boolean equals(@Nullable Object o); }
ProxyElement extends AbstractNamedElement<ProxyElement> { @Override public int hashCode() { return Objects.hash(id); }  @Nonnull ProxyValue<Id> getId(); @Nonnull ProxyElement setId(ProxyValue<Id> id); ProxyClass getMetaClass(); @Nonnull ProxyElement setMetaClass(ProxyClass metaClass); boolean isRoot(); @Nonnull ProxyElement setRoot(boolean isRoot); @Override int hashCode(); @Override boolean equals(@Nullable Object o);  }