@Test public void testHashCode() { List<FieldRow> groups = Collections.singletonList(FieldRow.create("f1", 42)); GroupCount g1 = GroupCount.create(groups, 10); GroupCount g2 = GroupCount.create(groups, 10); assertEquals(g1.hashCode(), g2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.groups) .append(this.count) .toHashCode(); }
GroupCount { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.groups) .append(this.count) .toHashCode(); } }
GroupCount { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.groups) .append(this.count) .toHashCode(); } private  GroupCount(List<FieldRow> groups, long count); }
GroupCount { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.groups) .append(this.count) .toHashCode(); } private  GroupCount(List<FieldRow> groups, long count); static GroupCount create(List<FieldRow> groups, long count); final List<FieldRow> getGroups(); long getCount(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
GroupCount { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.groups) .append(this.count) .toHashCode(); } private  GroupCount(List<FieldRow> groups, long count); static GroupCount create(List<FieldRow> groups, long count); final List<FieldRow> getGroups(); long getCount(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }