@Test public void testEquals() { ValueCountResult result1 = ValueCountResult.create(33, 5); ValueCountResult result2 = ValueCountResult.create(33, 5); boolean e = result1.equals(result2); assertTrue(e); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ValueCountResult)) { return false; } ValueCountResult rhs = (ValueCountResult) obj; return new EqualsBuilder() .append(this.value, rhs.value) .append(this.count, rhs.count) .isEquals(); }
ValueCountResult implements QueryResult { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ValueCountResult)) { return false; } ValueCountResult rhs = (ValueCountResult) obj; return new EqualsBuilder() .append(this.value, rhs.value) .append(this.count, rhs.count) .isEquals(); } }
ValueCountResult implements QueryResult { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ValueCountResult)) { return false; } ValueCountResult rhs = (ValueCountResult) obj; return new EqualsBuilder() .append(this.value, rhs.value) .append(this.count, rhs.count) .isEquals(); }  }
ValueCountResult implements QueryResult { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ValueCountResult)) { return false; } ValueCountResult rhs = (ValueCountResult) obj; return new EqualsBuilder() .append(this.value, rhs.value) .append(this.count, rhs.count) .isEquals(); }  @Override int getType(); @Override RowResult getRow(); @Override List<CountResultItem> getCountItems(); @Override long getCount(); @Override long getValue(); @Override boolean isChanged(); @Override List<GroupCount> getGroupCounts(); @Override RowIdentifiersResult getRowIdentifiers(); @Override boolean equals(Object obj); @Override int hashCode(); }
ValueCountResult implements QueryResult { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ValueCountResult)) { return false; } ValueCountResult rhs = (ValueCountResult) obj; return new EqualsBuilder() .append(this.value, rhs.value) .append(this.count, rhs.count) .isEquals(); }  @Override int getType(); @Override RowResult getRow(); @Override List<CountResultItem> getCountItems(); @Override long getCount(); @Override long getValue(); @Override boolean isChanged(); @Override List<GroupCount> getGroupCounts(); @Override RowIdentifiersResult getRowIdentifiers(); @Override boolean equals(Object obj); @Override int hashCode();  }