@Test public void testEquals() { ColumnAggregationResult group1Elem1 = new ColumnAggregationResult(Aggregation.MAX, "a", 1); ColumnAggregationResult group1Elem2 = new ColumnAggregationResult(Aggregation.MAX, "a", 1); ColumnAggregationResult group2Elem1 = new ColumnAggregationResult(Aggregation.MAX, "b", 1); ColumnAggregationResult group3Elem1 = new ColumnAggregationResult(Aggregation.MAX, "a", 2); new EqualsTester() .addEqualityGroup(group1Elem1, group1Elem2) .addEqualityGroup(group2Elem1) .addEqualityGroup(group3Elem1) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregationResult)) { return false; } ColumnAggregationResult rhs = (ColumnAggregationResult) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column) && Objects.equals(_value, rhs._value); }
ColumnAggregationResult { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregationResult)) { return false; } ColumnAggregationResult rhs = (ColumnAggregationResult) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column) && Objects.equals(_value, rhs._value); } }
ColumnAggregationResult { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregationResult)) { return false; } ColumnAggregationResult rhs = (ColumnAggregationResult) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column) && Objects.equals(_value, rhs._value); } ColumnAggregationResult(
      @Nonnull Aggregation aggregation, @Nonnull String column, @Nonnull Object value); }
ColumnAggregationResult { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregationResult)) { return false; } ColumnAggregationResult rhs = (ColumnAggregationResult) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column) && Objects.equals(_value, rhs._value); } ColumnAggregationResult(
      @Nonnull Aggregation aggregation, @Nonnull String column, @Nonnull Object value); @Override boolean equals(@Nullable Object obj); @JsonProperty(BfConsts.PROP_AGGREGATION) @Nonnull Aggregation getAggregation(); @JsonProperty(BfConsts.PROP_COLUMN) @Nonnull String getColumn(); @JsonProperty(BfConsts.PROP_VALUE) @Nonnull Object getValue(); @Override int hashCode(); @Override String toString(); }
ColumnAggregationResult { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregationResult)) { return false; } ColumnAggregationResult rhs = (ColumnAggregationResult) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column) && Objects.equals(_value, rhs._value); } ColumnAggregationResult(
      @Nonnull Aggregation aggregation, @Nonnull String column, @Nonnull Object value); @Override boolean equals(@Nullable Object obj); @JsonProperty(BfConsts.PROP_AGGREGATION) @Nonnull Aggregation getAggregation(); @JsonProperty(BfConsts.PROP_COLUMN) @Nonnull String getColumn(); @JsonProperty(BfConsts.PROP_VALUE) @Nonnull Object getValue(); @Override int hashCode(); @Override String toString();  }