@Test public void testEquals() { new EqualsTester() .addEqualityGroup(EXPR, EXPR, new HasCommunity(AllStandardCommunities.instance())) .addEqualityGroup(new HasCommunity(AllExtendedCommunities.instance())) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof HasCommunity)) { return false; } return _expr.equals(((HasCommunity) obj)._expr); }
HasCommunity extends CommunitySetMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof HasCommunity)) { return false; } return _expr.equals(((HasCommunity) obj)._expr); } }
HasCommunity extends CommunitySetMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof HasCommunity)) { return false; } return _expr.equals(((HasCommunity) obj)._expr); } HasCommunity(CommunityMatchExpr expr); }
HasCommunity extends CommunitySetMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof HasCommunity)) { return false; } return _expr.equals(((HasCommunity) obj)._expr); } HasCommunity(CommunityMatchExpr expr); @JsonProperty(PROP_EXPR) @Nonnull CommunityMatchExpr getExpr(); @Override boolean equals(Object obj); @Override int hashCode(); @Override T accept(CommunitySetMatchExprVisitor<T, U> visitor, U arg); }
HasCommunity extends CommunitySetMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof HasCommunity)) { return false; } return _expr.equals(((HasCommunity) obj)._expr); } HasCommunity(CommunityMatchExpr expr); @JsonProperty(PROP_EXPR) @Nonnull CommunityMatchExpr getExpr(); @Override boolean equals(Object obj); @Override int hashCode(); @Override T accept(CommunitySetMatchExprVisitor<T, U> visitor, U arg);  }