Interface FilterExpressionCollection
public interface FilterExpressionCollection
Set of OData filter functions for collection types.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ValueBoolean.Expressionall(Expressions.OperandMultiple operand1, ValueBoolean operand2, Predicate<FieldReference> lambdaFieldPredicate) static ValueBoolean.Expressionany(Expressions.OperandMultiple operand1) Returns aValueBoolean.Expressionthat checks whetheroperand1contains any elements.static ValueBoolean.Expressionany(Expressions.OperandMultiple operand1, ValueBoolean operand2, Predicate<FieldReference> lambdaFieldPredicate) static ValueCollection.Expressionconcat(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) static ValueBoolean.Expressioncontains(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1containsoperand2("contains").static ValueBoolean.ExpressionendsWith(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1ends withoperand2("endswith").static ValueBoolean.ExpressionhasSubSequence(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1hasoperand2as a subsequence ("hassubsequence").static ValueBoolean.ExpressionhasSubset(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1hasoperand2as a subset ("hassubset").static ValueNumeric.ExpressionindexOf(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueNumeric.Expressionthat is supposed to return the index ofoperand1whereoperand2starts ("indexof").static ValueNumeric.Expressionlength(Expressions.OperandMultiple operand) static ValueBoolean.ExpressionstartsWith(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1starts withoperand2("startswith").static ValueCollection.Expressionsubstring(Expressions.OperandMultiple operand1, ValueNumeric operand2) Returns aValueCollection.Expressionthat extracts the subsequence of {@code operand1) starting from {@code operand2) ({@code "substring"}). @param operand1 The collection to get the subsequence from. @param operand2 The index of the first element of the subsequence to be extracted. @return A {@link ValueCollection.Expression}.static ValueCollection.Expressionsubstring(Expressions.OperandMultiple operand1, ValueNumeric operand2, ValueNumeric operand3) Returns aValueCollection.Expressionthat extracts the subsequence of {@code operand1) starting from {@code operand2) with length {@code operand3} ({@code "substring"}). @param operand1 The collection to get the subsequence from. @param operand2 The index of the first element of the subsequence to be extracted. @param operand3 The length of the subsequence to be extracted. @return A {@link ValueCollection.Expression}.
-
Method Details
-
hasSubset
@Nonnull static ValueBoolean.Expression hasSubset(@Nonnull Expressions.OperandMultiple operand1, @Nonnull Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1hasoperand2as a subset ("hassubset").- Parameters:
operand1- The potential super set.operand2- The potential subset.- Returns:
- A
ValueBoolean.Expression.
-
hasSubSequence
@Nonnull static ValueBoolean.Expression hasSubSequence(@Nonnull Expressions.OperandMultiple operand1, @Nonnull Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1hasoperand2as a subsequence ("hassubsequence").- Parameters:
operand1- The potential super sequence.operand2- The potential subsequence.- Returns:
- A
ValueBoolean.Expression.
-
concat
@Nonnull static ValueCollection.Expression concat(@Nonnull Expressions.OperandMultiple operand1, @Nonnull Expressions.OperandMultiple operand2) - Parameters:
operand1- The first collection-like entity.operand2- The second collection-like entity.- Returns:
- A
ValueCollection.Expression.
-
contains
@Nonnull static ValueBoolean.Expression contains(@Nonnull Expressions.OperandMultiple operand1, @Nonnull Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1containsoperand2("contains").- Parameters:
operand1- The potential super set.operand2- The potential subset.- Returns:
- A
ValueBoolean.Expression.
-
endsWith
@Nonnull static ValueBoolean.Expression endsWith(@Nonnull Expressions.OperandMultiple operand1, @Nonnull Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1ends withoperand2("endswith").- Parameters:
operand1- The potential super set.operand2- The potential subset.- Returns:
- A
ValueBoolean.Expression.
-
startsWith
@Nonnull static ValueBoolean.Expression startsWith(@Nonnull Expressions.OperandMultiple operand1, @Nonnull Expressions.OperandMultiple operand2) Returns aValueBoolean.Expressionthat checks whether the givenoperand1starts withoperand2("startswith").- Parameters:
operand1- The potential super set.operand2- The potential subset.- Returns:
- A
ValueBoolean.Expression.
-
indexOf
@Nonnull static ValueNumeric.Expression indexOf(@Nonnull Expressions.OperandMultiple operand1, @Nonnull Expressions.OperandMultiple operand2) Returns aValueNumeric.Expressionthat is supposed to return the index ofoperand1whereoperand2starts ("indexof").- Parameters:
operand1- The potential super set.operand2- The potential subset.- Returns:
- A
ValueBoolean.Expression.
-
length
- Parameters:
operand- The operand to get the length from.- Returns:
- A
ValueNumeric.Expression.
-
substring
@Nonnull static ValueCollection.Expression substring(@Nonnull Expressions.OperandMultiple operand1, @Nonnull ValueNumeric operand2) Returns aValueCollection.Expressionthat extracts the subsequence of {@code operand1) starting from {@code operand2) ({@code "substring"}). @param operand1 The collection to get the subsequence from. @param operand2 The index of the first element of the subsequence to be extracted. @return A {@link ValueCollection.Expression}. -
substring
@Nonnull static ValueCollection.Expression substring(@Nonnull Expressions.OperandMultiple operand1, @Nonnull ValueNumeric operand2, @Nonnull ValueNumeric operand3) Returns aValueCollection.Expressionthat extracts the subsequence of {@code operand1) starting from {@code operand2) with length {@code operand3} ({@code "substring"}). @param operand1 The collection to get the subsequence from. @param operand2 The index of the first element of the subsequence to be extracted. @param operand3 The length of the subsequence to be extracted. @return A {@link ValueCollection.Expression}. -
all
@Nonnull static ValueBoolean.Expression all(@Nonnull Expressions.OperandMultiple operand1, @Nonnull ValueBoolean operand2, @Nonnull Predicate<FieldReference> lambdaFieldPredicate) - Parameters:
operand1- The collection-like entity to be checked.operand2- The condition to be satisfied.lambdaFieldPredicate- The predicate for which fields will be given a prefix.- Returns:
- A
ValueBoolean.Expression.
-
any
@Nonnull static ValueBoolean.Expression any(@Nonnull Expressions.OperandMultiple operand1, @Nonnull ValueBoolean operand2, @Nonnull Predicate<FieldReference> lambdaFieldPredicate) - Parameters:
operand1- The collection-like entity to be checked.operand2- The condition to be satisfied.lambdaFieldPredicate- The predicate for which fields will be given a prefix.- Returns:
- A
ValueBoolean.Expression.
-
any
Returns aValueBoolean.Expressionthat checks whetheroperand1contains any elements.- Parameters:
operand1- The collection=like entity to be checked.- Returns:
- A
ValueBoolean.Expression.
-