@Test public void testEquals() { new EqualsTester() .addEqualityGroup(EXPR, EXPR, new CommunityIn(new CommunitySetReference("a"))) .addEqualityGroup(new CommunityIn(new CommunitySetReference("b"))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIn)) { return false; } return _communitySetExpr.equals(((CommunityIn) obj)._communitySetExpr); }
CommunityIn extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIn)) { return false; } return _communitySetExpr.equals(((CommunityIn) obj)._communitySetExpr); } }
CommunityIn extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIn)) { return false; } return _communitySetExpr.equals(((CommunityIn) obj)._communitySetExpr); } CommunityIn(CommunitySetExpr communitySetExpr); }
CommunityIn extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIn)) { return false; } return _communitySetExpr.equals(((CommunityIn) obj)._communitySetExpr); } CommunityIn(CommunitySetExpr communitySetExpr); @JsonProperty(PROP_COMMUNITY_SET_EXPR) @Nonnull CommunitySetExpr getCommunitySetExpr(); @Override boolean equals(Object obj); @Override int hashCode(); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg); }
CommunityIn extends CommunityMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunityIn)) { return false; } return _communitySetExpr.equals(((CommunityIn) obj)._communitySetExpr); } CommunityIn(CommunitySetExpr communitySetExpr); @JsonProperty(PROP_COMMUNITY_SET_EXPR) @Nonnull CommunitySetExpr getCommunitySetExpr(); @Override boolean equals(Object obj); @Override int hashCode(); @Override T accept(CommunityMatchExprVisitor<T, U> visitor, U arg);  }