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