Interface FilterExpressionCollection
public interface FilterExpressionCollection
Set of OData filter functions for collection types.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ValueBoolean.Expression
all
(Expressions.OperandMultiple operand1, ValueBoolean operand2, Predicate<FieldReference> lambdaFieldPredicate) static ValueBoolean.Expression
any
(Expressions.OperandMultiple operand1) Returns aValueBoolean.Expression
that checks whetheroperand1
contains any elements.static ValueBoolean.Expression
any
(Expressions.OperandMultiple operand1, ValueBoolean operand2, Predicate<FieldReference> lambdaFieldPredicate) static ValueCollection.Expression
concat
(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) static ValueBoolean.Expression
contains
(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expression
that checks whether the givenoperand1
containsoperand2
("contains"
).static ValueBoolean.Expression
endsWith
(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expression
that checks whether the givenoperand1
ends withoperand2
("endswith"
).static ValueBoolean.Expression
hasSubSequence
(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expression
that checks whether the givenoperand1
hasoperand2
as a subsequence ("hassubsequence"
).static ValueBoolean.Expression
hasSubset
(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expression
that checks whether the givenoperand1
hasoperand2
as a subset ("hassubset"
).static ValueNumeric.Expression
indexOf
(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueNumeric.Expression
that is supposed to return the index ofoperand1
whereoperand2
starts ("indexof"
).static ValueNumeric.Expression
length
(Expressions.OperandMultiple operand) static ValueBoolean.Expression
startsWith
(Expressions.OperandMultiple operand1, Expressions.OperandMultiple operand2) Returns aValueBoolean.Expression
that checks whether the givenoperand1
starts withoperand2
("startswith"
).static ValueCollection.Expression
substring
(Expressions.OperandMultiple operand1, ValueNumeric operand2) Returns aValueCollection.Expression
that 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.Expression
substring
(Expressions.OperandMultiple operand1, ValueNumeric operand2, ValueNumeric operand3) Returns aValueCollection.Expression
that 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.Expression
that checks whether the givenoperand1
hasoperand2
as 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.Expression
that checks whether the givenoperand1
hasoperand2
as 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.Expression
that checks whether the givenoperand1
containsoperand2
("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.Expression
that checks whether the givenoperand1
ends 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.Expression
that checks whether the givenoperand1
starts 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.Expression
that is supposed to return the index ofoperand1
whereoperand2
starts ("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.Expression
that 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.Expression
that 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.Expression
that checks whetheroperand1
contains any elements.- Parameters:
operand1
- The collection=like entity to be checked.- Returns:
- A
ValueBoolean.Expression
.
-