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