/** * A convenience shortcut for building NOT_IN expression. Return ASTTrue for * empty collection. */ public static Expression notInExp(String pathSpec, Collection<?> values) { return notInExp(new ASTObjPath(pathSpec), values); }
/** * A convenience shortcut for building NOT_IN expression. Return ASTTrue for * empty collection. * * @since 1.0.6 */ public static Expression notInExp(String pathSpec, Object... values) { return notInExp(new ASTObjPath(pathSpec), values); }
/** * @return An expression for finding objects with values not in the given * set. */ public Expression nin(Collection<E> values) { return ExpressionFactory.notInExp(getExpression(), values); }
/** * @return An expression for finding objects with values not in the given * set. */ public Expression nin(E firstValue, E... moreValues) { int moreValuesLength = moreValues != null ? moreValues.length : 0; Object[] values = new Object[moreValuesLength + 1]; values[0] = firstValue; if (moreValuesLength > 0) { System.arraycopy(moreValues, 0, values, 1, moreValuesLength); } return ExpressionFactory.notInExp(getExpression(), values); }