@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup( OBJ, OBJ, IntMatchAll.of(new IntComparison(IntComparator.EQ, new LiteralInt(1))), IntMatchAll.of(ImmutableSet.of(new IntComparison(IntComparator.EQ, new LiteralInt(1)))), new IntMatchAll( ImmutableSet.of(new IntComparison(IntComparator.EQ, new LiteralInt(1))))) .addEqualityGroup(IntMatchAll.of()) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof IntMatchAll)) { return false; } return _exprs.equals(((IntMatchAll) obj)._exprs); }
IntMatchAll extends IntMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof IntMatchAll)) { return false; } return _exprs.equals(((IntMatchAll) obj)._exprs); } }
IntMatchAll extends IntMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof IntMatchAll)) { return false; } return _exprs.equals(((IntMatchAll) obj)._exprs); } @VisibleForTesting  IntMatchAll(ImmutableSet<IntMatchExpr> exprs); }
IntMatchAll extends IntMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof IntMatchAll)) { return false; } return _exprs.equals(((IntMatchAll) obj)._exprs); } @VisibleForTesting  IntMatchAll(ImmutableSet<IntMatchExpr> exprs); static @Nonnull IntMatchAll of(IntMatchExpr... exprs); static @Nonnull IntMatchAll of(Iterable<IntMatchExpr> exprs); @Override T accept(IntMatchExprVisitor<T, U> visitor, U arg); @JsonIgnore Set<IntMatchExpr> getExprs(); @Override boolean equals(Object obj); @Override int hashCode(); }
IntMatchAll extends IntMatchExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof IntMatchAll)) { return false; } return _exprs.equals(((IntMatchAll) obj)._exprs); } @VisibleForTesting  IntMatchAll(ImmutableSet<IntMatchExpr> exprs); static @Nonnull IntMatchAll of(IntMatchExpr... exprs); static @Nonnull IntMatchAll of(Iterable<IntMatchExpr> exprs); @Override T accept(IntMatchExprVisitor<T, U> visitor, U arg); @JsonIgnore Set<IntMatchExpr> getExprs(); @Override boolean equals(Object obj); @Override int hashCode();  }