@Test public void testEqualsDifferentDescription() { final CodeSet other = new CodeSet(codeSetNumber, StringUtils.reverse(description)); assertThat(codeSet).isEqualTo(other); assertThat(other).isEqualTo(codeSet); assertThat(other.hashCode()).isEqualTo(codeSet.hashCode()); }
@Override public int hashCode() { return codeSet; }
CodeSet implements Described { @Override public int hashCode() { return codeSet; } }
CodeSet implements Described { @Override public int hashCode() { return codeSet; } CodeSet(final int codeSet);  CodeSet(final int codeSet, final String description); }
CodeSet implements Described { @Override public int hashCode() { return codeSet; } CodeSet(final int codeSet);  CodeSet(final int codeSet, final String description); @Override boolean equals(final Object obj); int getCodeSet(); @Override String getDescription(); @Override int hashCode(); @Override String toString(); }
CodeSet implements Described { @Override public int hashCode() { return codeSet; } CodeSet(final int codeSet);  CodeSet(final int codeSet, final String description); @Override boolean equals(final Object obj); int getCodeSet(); @Override String getDescription(); @Override int hashCode(); @Override String toString();  }