Interface FilterExpressionString
public interface FilterExpressionString
Set of OData filter functions for string types.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ValueString.Expression
concat
(ValueString operand1, ValueString operand2) static ValueBoolean.Expression
contains
(ValueString operand1, ValueString operand2) static ValueBoolean.Expression
endsWith
(ValueString operand1, ValueString operand2) static ValueNumeric.Expression
indexOf
(ValueString operand1, ValueString operand2) static ValueNumeric.Expression
length
(ValueString operand) static ValueBoolean.Expression
matchesPattern
(ValueString operand1, ValueString operand2) Return aValueBoolean.Expression
that checks whetheroperand1
matches the patternoperand2
("matchesPattern"
).static ValueBoolean.Expression
startsWith
(ValueString operand1, ValueString operand2) static ValueString.Expression
substring
(ValueString operand1, ValueNumeric operand2) Returns aValueString.Expression
that returns a substring ofoperand1
starting atoperand2
("substring"
).static ValueString.Expression
substring
(ValueString operand1, ValueNumeric operand2, ValueNumeric operand3) Returns aValueString.Expression
that returns a substring ofoperand1
starting atoperand2
with lengthoperand3
("substring"
).static ValueBoolean.Expression
substringOf
(ValueString operand1, ValueString operand2) Returns aValueBoolean.Expression
that checks whetheroperand1
hasoperand2
as a substring ("substringof"
).static ValueString.Expression
toLower
(ValueString operand) static ValueString.Expression
toUpper
(ValueString operand) static ValueString.Expression
trim
(ValueString operand) Returns aValueString.Expression
that removes leading and trailing whitespace from the givenoperand
("trim"
).
-
Method Details
-
matchesPattern
@Nonnull static ValueBoolean.Expression matchesPattern(@Nonnull ValueString operand1, @Nonnull ValueString operand2) Return aValueBoolean.Expression
that checks whetheroperand1
matches the patternoperand2
("matchesPattern"
).- Parameters:
operand1
- The potential subsequence.operand2
- The pattern.- Returns:
- A
ValueBoolean.Expression
.
-
toLower
- Parameters:
operand
- The operand to be converted to lower case.- Returns:
- A
ValueString.Expression
.
-
toUpper
- Parameters:
operand
- The operand to be converted to upper case.- Returns:
- A
ValueString.Expression
.
-
trim
Returns aValueString.Expression
that removes leading and trailing whitespace from the givenoperand
("trim"
).- Parameters:
operand
- The operand to be trimmed.- Returns:
- A
ValueString.Expression
.
-
concat
@Nonnull static ValueString.Expression concat(@Nonnull ValueString operand1, @Nonnull ValueString operand2) - Parameters:
operand1
- The first operand.operand2
- The second operand.- Returns:
- A
ValueString.Expression
.
-
contains
@Nonnull static ValueBoolean.Expression contains(@Nonnull ValueString operand1, @Nonnull ValueString operand2) - Parameters:
operand1
- The potential super sequence.operand2
- The potential subsequence.- Returns:
- A
ValueBoolean.Expression
.
-
substringOf
@Nonnull static ValueBoolean.Expression substringOf(@Nonnull ValueString operand1, @Nonnull ValueString operand2) Returns aValueBoolean.Expression
that checks whetheroperand1
hasoperand2
as a substring ("substringof"
).- Parameters:
operand1
- The potential super sequence.operand2
- The potential subsequence.- Returns:
- A
ValueBoolean.Expression
.
-
endsWith
@Nonnull static ValueBoolean.Expression endsWith(@Nonnull ValueString operand1, @Nonnull ValueString operand2) - Parameters:
operand1
- The potential super sequence.operand2
- The potential subsequence.- Returns:
- A
ValueBoolean.Expression
.
-
startsWith
@Nonnull static ValueBoolean.Expression startsWith(@Nonnull ValueString operand1, @Nonnull ValueString operand2) - Parameters:
operand1
- The potential super sequence.operand2
- The potential subsequence.- Returns:
- A
ValueBoolean.Expression
.
-
indexOf
@Nonnull static ValueNumeric.Expression indexOf(@Nonnull ValueString operand1, @Nonnull ValueString operand2) - Parameters:
operand1
- The potential super sequence.operand2
- The potential subsequence.- Returns:
- A
ValueNumeric.Expression
.
-
length
- Parameters:
operand
- The operand.- Returns:
- A
ValueNumeric.Expression
.
-
substring
@Nonnull static ValueString.Expression substring(@Nonnull ValueString operand1, @Nonnull ValueNumeric operand2) Returns aValueString.Expression
that returns a substring ofoperand1
starting atoperand2
("substring"
).- Parameters:
operand1
- The operand.operand2
- The start index.- Returns:
- A
ValueString.Expression
.
-
substring
@Nonnull static ValueString.Expression substring(@Nonnull ValueString operand1, @Nonnull ValueNumeric operand2, @Nonnull ValueNumeric operand3) Returns aValueString.Expression
that returns a substring ofoperand1
starting atoperand2
with lengthoperand3
("substring"
).- Parameters:
operand1
- The operand.operand2
- The start index.operand3
- The length.- Returns:
- A
ValueString.Expression
.
-