/** * @param right * @return */ public BooleanExpression goeAny(CollectionExpression<?, ? super T> right) { return goe(ExpressionUtils.<T>any(right)); }
/** * @param right * @return */ public BooleanExpression goeAll(CollectionExpression<?, ? super T> right) { return goe(ExpressionUtils.<T>all(right)); }
/** * Create a {@code this >= right} expression * * @param <A> * @param right rhs of the comparison * @return {@code this >= right} * @see java.lang.Comparable#compareTo(Object) */ public final <A extends Number & Comparable<?>> BooleanExpression goe(A right) { return goe(ConstantImpl.create(cast(right))); }
/** * 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))); } }
@Test public void Not_3() throws Exception { query().from(cat).where(cat.kittens.size().goe(1).not()).parse(); }