@Test public void testEqualsDifferentName() { final SubroutineDefinition other = new SubroutineDefinition(StringUtils.reverse(subroutineName), argumentNames); assertThat(definition).isNotEqualTo(other); assertThat(other).isNotEqualTo(definition); assertThat(definition.hashCode()).isNotEqualTo(other.hashCode()); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + argumentNames.hashCode(); result = prime * result + name.hashCode(); return result; }
SubroutineDefinition { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + argumentNames.hashCode(); result = prime * result + name.hashCode(); return result; } }
SubroutineDefinition { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + argumentNames.hashCode(); result = prime * result + name.hashCode(); return result; } SubroutineDefinition(final String name, final List<String> argumentNames); }
SubroutineDefinition { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + argumentNames.hashCode(); result = prime * result + name.hashCode(); return result; } SubroutineDefinition(final String name, final List<String> argumentNames); @Override boolean equals(final Object obj); List<String> getArgumentNames(); String getName(); @Override int hashCode(); @Override String toString(); }
SubroutineDefinition { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + argumentNames.hashCode(); result = prime * result + name.hashCode(); return result; } SubroutineDefinition(final String name, final List<String> argumentNames); @Override boolean equals(final Object obj); List<String> getArgumentNames(); String getName(); @Override int hashCode(); @Override String toString();  }