@Test public void testEquals() { new EqualsTester() .addEqualityGroup(EXPR, EXPR, new CommunitySetMatchAny(ImmutableList.of())) .addEqualityGroup( new CommunitySetMatchAny( ImmutableList.of(new HasCommunity(AllStandardCommunities.instance())))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetMatchAny)) { return false; } return _exprs.equals(((CommunitySetMatchAny) obj)._exprs); }
CommunitySetMatchAny extends CommunitySetMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetMatchAny)) { return false; } return _exprs.equals(((CommunitySetMatchAny) obj)._exprs); } }
CommunitySetMatchAny extends CommunitySetMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetMatchAny)) { return false; } return _exprs.equals(((CommunitySetMatchAny) obj)._exprs); } CommunitySetMatchAny(Iterable<CommunitySetMatchExpr> exprs); }
CommunitySetMatchAny extends CommunitySetMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetMatchAny)) { return false; } return _exprs.equals(((CommunitySetMatchAny) obj)._exprs); } CommunitySetMatchAny(Iterable<CommunitySetMatchExpr> exprs); @Nonnull Set<CommunitySetMatchExpr> getExprs(); @Override boolean equals(Object obj); @Override int hashCode(); @Override T accept(CommunitySetMatchExprVisitor<T, U> visitor, U arg); }
CommunitySetMatchAny extends CommunitySetMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySetMatchAny)) { return false; } return _exprs.equals(((CommunitySetMatchAny) obj)._exprs); } CommunitySetMatchAny(Iterable<CommunitySetMatchExpr> exprs); @Nonnull Set<CommunitySetMatchExpr> getExprs(); @Override boolean equals(Object obj); @Override int hashCode(); @Override T accept(CommunitySetMatchExprVisitor<T, U> visitor, U arg);  }