@Test public void testEquals() { RowResult result1 = createSampleResult(); RowResult result2 = createSampleResult(); boolean e = result1.equals(result2); assertTrue(e); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof RowResult)) { return false; } RowResult rhs = (RowResult) obj; return new EqualsBuilder() .append(this.attributes, rhs.attributes) .append(this.columns, rhs.columns) .append(this.keys, rhs.keys) .isEquals(); }
RowResult implements QueryResult { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof RowResult)) { return false; } RowResult rhs = (RowResult) obj; return new EqualsBuilder() .append(this.attributes, rhs.attributes) .append(this.columns, rhs.columns) .append(this.keys, rhs.keys) .isEquals(); } }
RowResult implements QueryResult { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof RowResult)) { return false; } RowResult rhs = (RowResult) obj; return new EqualsBuilder() .append(this.attributes, rhs.attributes) .append(this.columns, rhs.columns) .append(this.keys, rhs.keys) .isEquals(); }  }
RowResult implements QueryResult { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof RowResult)) { return false; } RowResult rhs = (RowResult) obj; return new EqualsBuilder() .append(this.attributes, rhs.attributes) .append(this.columns, rhs.columns) .append(this.keys, rhs.keys) .isEquals(); }  Map<String, Object> getAttributes(); List<Long> getColumns(); List<String> getKeys(); @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 String toString(); @Override boolean equals(Object obj); @Override int hashCode(); }
RowResult implements QueryResult { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof RowResult)) { return false; } RowResult rhs = (RowResult) obj; return new EqualsBuilder() .append(this.attributes, rhs.attributes) .append(this.columns, rhs.columns) .append(this.keys, rhs.keys) .isEquals(); }  Map<String, Object> getAttributes(); List<Long> getColumns(); List<String> getKeys(); @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 String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }