/** * @param right * @return */ public BooleanExpression neAny(CollectionExpression<?, ? super T> right) { return ne(ExpressionUtils.any(right)); }
/** * @param right * @return */ public BooleanExpression neAll(CollectionExpression<?, ? super T> right) { return ne(ExpressionUtils.all(right)); }
/** * Get a {@code this <> right} expression * * @param right rhs of the comparison * @return */ public BooleanExpression ne(T right) { if (right == null) { throw new IllegalArgumentException("ne(null) is not allowed. Use isNotNull() instead"); } else { return ne(ConstantImpl.create(right)); } }
public BooleanExpression ne(Expression<A> expr) { return getValue().ne(expr); }
public BooleanExpression ne(A arg) { return getValue().ne(arg); }
/** * Get a {@code this not in right} expression * * @param right rhs of the comparison * @return */ public BooleanExpression notIn(Collection<? extends T> right) { if (right.size() == 1) { return ne(right.iterator().next()); } else { return BooleanOperation.create(Ops.NOT_IN, mixin, ConstantImpl.create(right)); } }
/** * Get a {@code this not in right} expression * * @param right rhs of the comparison * @return */ public BooleanExpression notIn(T... right) { if (right.length == 1) { return ne(right[0]); } else { return BooleanOperation.create(Ops.NOT_IN, mixin, ConstantImpl.create(ImmutableList.copyOf(right))); } }