/** * @param from * @param to * @return */ public final <A extends Number & Comparable<?>> BooleanExpression notBetween(Expression<A> from, Expression<A> to) { return between(from, to).not(); }
/** * @param from * @param to * @return */ public final <A extends Number & Comparable<?>> BooleanExpression notBetween(A from, A to) { return between(from, to).not(); }
/** * Create a {@code from <= this <= to} expression * * @param <A> * @param from * @param to * @return */ public final <A extends Number & Comparable<?>> BooleanExpression between(@Nullable A from, @Nullable A to) { if (from == null) { if (to != null) { return loe(to); } else { throw new IllegalArgumentException("Either from or to needs to be non-null"); } } else if (to == null) { return goe(from); } else { return between(ConstantImpl.create(cast(from)), ConstantImpl.create(cast(to))); } }