@Test public void testHashCodeEqualsContract$equal() throws Exception { ImmutableElementParameter sut = createParameter("header", "value"); ImmutableElementParameter other = createParameter("header", "value"); assertThat(sut,equalTo(other)); assertThat(sut.hashCode(),equalTo(other.hashCode())); }
@Override public int hashCode() { return Objects. hash(this.name,this.value); }
ImmutableElementParameter implements Parameter { @Override public int hashCode() { return Objects. hash(this.name,this.value); } }
ImmutableElementParameter implements Parameter { @Override public int hashCode() { return Objects. hash(this.name,this.value); } ImmutableElementParameter(String name, String value); }
ImmutableElementParameter implements Parameter { @Override public int hashCode() { return Objects. hash(this.name,this.value); } ImmutableElementParameter(String name, String value); @Override String name(); @Override String value(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ImmutableElementParameter implements Parameter { @Override public int hashCode() { return Objects. hash(this.name,this.value); } ImmutableElementParameter(String name, String value); @Override String name(); @Override String value(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }