@Test public void testHashCode() { CountResultItem result1 = createSampleResult(); CountResultItem result2 = createSampleResult(); assertEquals(result1.hashCode(), result2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.id) .append(key) .append(this.count) .toHashCode(); }
CountResultItem { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.id) .append(key) .append(this.count) .toHashCode(); } }
CountResultItem { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.id) .append(key) .append(this.count) .toHashCode(); }  }
CountResultItem { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.id) .append(key) .append(this.count) .toHashCode(); }  long getID(); String getKey(); long getCount(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); }
CountResultItem { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.id) .append(key) .append(this.count) .toHashCode(); }  long getID(); String getKey(); long getCount(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }