@Test public void testEquals() { BoolExpr c = Conjunction.of(TrueExpr.instance()); new EqualsTester() .addEqualityGroup(c, c, Conjunction.of(TrueExpr.instance())) .addEqualityGroup(Conjunction.of(FalseExpr.instance())) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Conjunction)) { return false; } Conjunction that = (Conjunction) o; return _conjuncts.equals(that._conjuncts); }
Conjunction implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Conjunction)) { return false; } Conjunction that = (Conjunction) o; return _conjuncts.equals(that._conjuncts); } }
Conjunction implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Conjunction)) { return false; } Conjunction that = (Conjunction) o; return _conjuncts.equals(that._conjuncts); } private  Conjunction(List<BoolExpr> conjuncts); }
Conjunction implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Conjunction)) { return false; } Conjunction that = (Conjunction) o; return _conjuncts.equals(that._conjuncts); } private  Conjunction(List<BoolExpr> conjuncts); static BoolExpr of(Iterable<BoolExpr> exprs); static BoolExpr of(BoolExpr... exprs); @Nonnull @JsonProperty(PROP_CONJUNCTS) List<BoolExpr> getConjuncts(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override T accept(BoolExprVisitor<T> tBoolExprVisitor); }
Conjunction implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Conjunction)) { return false; } Conjunction that = (Conjunction) o; return _conjuncts.equals(that._conjuncts); } private  Conjunction(List<BoolExpr> conjuncts); static BoolExpr of(Iterable<BoolExpr> exprs); static BoolExpr of(BoolExpr... exprs); @Nonnull @JsonProperty(PROP_CONJUNCTS) List<BoolExpr> getConjuncts(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override T accept(BoolExprVisitor<T> tBoolExprVisitor);  }