@Test public void testEquals() { new EqualsTester() .addEqualityGroup( EXPR, EXPR, new MatchCommunities( new CommunitySetExprReference("a"), new CommunitySetMatchExprReference("a"))) .addEqualityGroup( new MatchCommunities( new CommunitySetExprReference("b"), new CommunitySetMatchExprReference("a"))) .addEqualityGroup( new MatchCommunities( new CommunitySetExprReference("b"), new CommunitySetMatchExprReference("b"))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof MatchCommunities)) { return false; } MatchCommunities rhs = (MatchCommunities) obj; return _communitySetExpr.equals(rhs._communitySetExpr) && _communitySetMatchExpr.equals(rhs._communitySetMatchExpr); }
MatchCommunities extends BooleanExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof MatchCommunities)) { return false; } MatchCommunities rhs = (MatchCommunities) obj; return _communitySetExpr.equals(rhs._communitySetExpr) && _communitySetMatchExpr.equals(rhs._communitySetMatchExpr); } }
MatchCommunities extends BooleanExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof MatchCommunities)) { return false; } MatchCommunities rhs = (MatchCommunities) obj; return _communitySetExpr.equals(rhs._communitySetExpr) && _communitySetMatchExpr.equals(rhs._communitySetMatchExpr); } MatchCommunities(
      CommunitySetExpr communitySetExpr, CommunitySetMatchExpr communitySetMatchExpr); }
MatchCommunities extends BooleanExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof MatchCommunities)) { return false; } MatchCommunities rhs = (MatchCommunities) obj; return _communitySetExpr.equals(rhs._communitySetExpr) && _communitySetMatchExpr.equals(rhs._communitySetMatchExpr); } MatchCommunities(
      CommunitySetExpr communitySetExpr, CommunitySetMatchExpr communitySetMatchExpr); @Override T accept(BooleanExprVisitor<T, U> visitor, U arg); @Override @Nonnull Result evaluate(Environment environment); @JsonProperty(PROP_COMMUNITY_SET_EXPR) @Nonnull CommunitySetExpr getCommunitySetExpr(); @JsonProperty(PROP_COMMUNITY_SET_MATCH_EXPR) @Nonnull CommunitySetMatchExpr getCommunitySetMatchExpr(); @Override boolean equals(Object obj); @Override int hashCode(); }
MatchCommunities extends BooleanExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof MatchCommunities)) { return false; } MatchCommunities rhs = (MatchCommunities) obj; return _communitySetExpr.equals(rhs._communitySetExpr) && _communitySetMatchExpr.equals(rhs._communitySetMatchExpr); } MatchCommunities(
      CommunitySetExpr communitySetExpr, CommunitySetMatchExpr communitySetMatchExpr); @Override T accept(BooleanExprVisitor<T, U> visitor, U arg); @Override @Nonnull Result evaluate(Environment environment); @JsonProperty(PROP_COMMUNITY_SET_EXPR) @Nonnull CommunitySetExpr getCommunitySetExpr(); @JsonProperty(PROP_COMMUNITY_SET_MATCH_EXPR) @Nonnull CommunitySetMatchExpr getCommunitySetMatchExpr(); @Override boolean equals(Object obj); @Override int hashCode();  }