@Test public void testEquals() { ColumnAggregation a1 = new ColumnAggregation(Aggregation.MAX, "a"); ColumnAggregation a2 = new ColumnAggregation(Aggregation.MAX, "a"); ColumnAggregation b1 = new ColumnAggregation(Aggregation.MAX, "b"); new EqualsTester().addEqualityGroup(a1, a2).addEqualityGroup(b1).testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregation)) { return false; } ColumnAggregation rhs = (ColumnAggregation) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column); }
ColumnAggregation { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregation)) { return false; } ColumnAggregation rhs = (ColumnAggregation) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column); } }
ColumnAggregation { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregation)) { return false; } ColumnAggregation rhs = (ColumnAggregation) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column); } ColumnAggregation(@Nonnull Aggregation aggregation, @Nonnull String column); }
ColumnAggregation { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregation)) { return false; } ColumnAggregation rhs = (ColumnAggregation) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column); } ColumnAggregation(@Nonnull Aggregation aggregation, @Nonnull String column); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @JsonProperty(BfConsts.PROP_AGGREGATION) @Nonnull Aggregation getAggregation(); @JsonProperty(BfConsts.PROP_COLUMN) @Nonnull String getColumn(); @Override String toString(); }
ColumnAggregation { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof ColumnAggregation)) { return false; } ColumnAggregation rhs = (ColumnAggregation) obj; return _aggregation == rhs._aggregation && _column.equals(rhs._column); } ColumnAggregation(@Nonnull Aggregation aggregation, @Nonnull String column); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @JsonProperty(BfConsts.PROP_AGGREGATION) @Nonnull Aggregation getAggregation(); @JsonProperty(BfConsts.PROP_COLUMN) @Nonnull String getColumn(); @Override String toString();  }