@Test public void testEquals() { new EqualsTester() .addEqualityGroup(OBJ, OBJ, new SetCommunities(new CommunitySetExprReference("a"))) .addEqualityGroup(new SetCommunities(new CommunitySetExprReference("b"))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SetCommunities)) { return false; } return _communitySetExpr.equals(((SetCommunities) obj)._communitySetExpr); }
SetCommunities extends Statement { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SetCommunities)) { return false; } return _communitySetExpr.equals(((SetCommunities) obj)._communitySetExpr); } }
SetCommunities extends Statement { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SetCommunities)) { return false; } return _communitySetExpr.equals(((SetCommunities) obj)._communitySetExpr); } SetCommunities(CommunitySetExpr communitySetExpr); }
SetCommunities extends Statement { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SetCommunities)) { return false; } return _communitySetExpr.equals(((SetCommunities) obj)._communitySetExpr); } SetCommunities(CommunitySetExpr communitySetExpr); @Override T accept(StatementVisitor<T, U> visitor, U arg); @Override @Nonnull Result execute(Environment environment); @JsonProperty(PROP_COMMUNITY_SET_EXPR) @Nonnull CommunitySetExpr getCommunitySetExpr(); @Override boolean equals(Object obj); @Override int hashCode(); }
SetCommunities extends Statement { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SetCommunities)) { return false; } return _communitySetExpr.equals(((SetCommunities) obj)._communitySetExpr); } SetCommunities(CommunitySetExpr communitySetExpr); @Override T accept(StatementVisitor<T, U> visitor, U arg); @Override @Nonnull Result execute(Environment environment); @JsonProperty(PROP_COMMUNITY_SET_EXPR) @Nonnull CommunitySetExpr getCommunitySetExpr(); @Override boolean equals(Object obj); @Override int hashCode();  }