@Test public void testEquals() { new EqualsTester() .addEqualityGroup( EXPR, EXPR, new CommunitySetDifference( new CommunitySetExprReference("a"), new CommunityMatchExprReference("a"))) .addEqualityGroup( new CommunitySetDifference( new CommunitySetExprReference("b"), new CommunityMatchExprReference("a"))) .addEqualityGroup( new CommunitySetDifference( new CommunitySetExprReference("b"), new CommunityMatchExprReference("b"))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetDifference)) { return false; } CommunitySetDifference rhs = (CommunitySetDifference) obj; return _initial.equals(rhs._initial) && _removalCriterion.equals(rhs._removalCriterion); }
CommunitySetDifference extends CommunitySetExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetDifference)) { return false; } CommunitySetDifference rhs = (CommunitySetDifference) obj; return _initial.equals(rhs._initial) && _removalCriterion.equals(rhs._removalCriterion); } }
CommunitySetDifference extends CommunitySetExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetDifference)) { return false; } CommunitySetDifference rhs = (CommunitySetDifference) obj; return _initial.equals(rhs._initial) && _removalCriterion.equals(rhs._removalCriterion); } CommunitySetDifference(CommunitySetExpr initial, CommunityMatchExpr removalCriterion); }
CommunitySetDifference extends CommunitySetExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetDifference)) { return false; } CommunitySetDifference rhs = (CommunitySetDifference) obj; return _initial.equals(rhs._initial) && _removalCriterion.equals(rhs._removalCriterion); } CommunitySetDifference(CommunitySetExpr initial, CommunityMatchExpr removalCriterion); @Override T accept(CommunitySetExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_INITIAL) @Nonnull CommunitySetExpr getInitial(); @JsonProperty(PROP_REMOVAL_CRITERION) @Nonnull CommunityMatchExpr getRemovalCriterion(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
CommunitySetDifference extends CommunitySetExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetDifference)) { return false; } CommunitySetDifference rhs = (CommunitySetDifference) obj; return _initial.equals(rhs._initial) && _removalCriterion.equals(rhs._removalCriterion); } CommunitySetDifference(CommunitySetExpr initial, CommunityMatchExpr removalCriterion); @Override T accept(CommunitySetExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_INITIAL) @Nonnull CommunitySetExpr getInitial(); @JsonProperty(PROP_REMOVAL_CRITERION) @Nonnull CommunityMatchExpr getRemovalCriterion(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }