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