@Test public void testJavaSerialization() { BoolExpr c = Conjunction.of(TrueExpr.instance()); assertThat(SerializationUtils.clone(c), equalTo(c)); }
public static BoolExpr of(Iterable<BoolExpr> exprs) { List<BoolExpr> l = ImmutableList.copyOf(exprs); if (l.isEmpty()) { return TrueExpr.instance(); } return new Conjunction(l); }
Conjunction implements BoolExpr { public static BoolExpr of(Iterable<BoolExpr> exprs) { List<BoolExpr> l = ImmutableList.copyOf(exprs); if (l.isEmpty()) { return TrueExpr.instance(); } return new Conjunction(l); } }
Conjunction implements BoolExpr { public static BoolExpr of(Iterable<BoolExpr> exprs) { List<BoolExpr> l = ImmutableList.copyOf(exprs); if (l.isEmpty()) { return TrueExpr.instance(); } return new Conjunction(l); } private  Conjunction(List<BoolExpr> conjuncts); }
Conjunction implements BoolExpr { public static BoolExpr of(Iterable<BoolExpr> exprs) { List<BoolExpr> l = ImmutableList.copyOf(exprs); if (l.isEmpty()) { return TrueExpr.instance(); } return new Conjunction(l); } 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 { public static BoolExpr of(Iterable<BoolExpr> exprs) { List<BoolExpr> l = ImmutableList.copyOf(exprs); if (l.isEmpty()) { return TrueExpr.instance(); } return new Conjunction(l); } 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);  }