Interface FilterExpressionString
public interface FilterExpressionString
Set of OData filter functions for string types.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ValueString.Expressionconcat(ValueString operand1, ValueString operand2) static ValueBoolean.Expressioncontains(ValueString operand1, ValueString operand2) static ValueBoolean.ExpressionendsWith(ValueString operand1, ValueString operand2) static ValueNumeric.ExpressionindexOf(ValueString operand1, ValueString operand2) static ValueNumeric.Expressionlength(ValueString operand) static ValueBoolean.ExpressionmatchesPattern(ValueString operand1, ValueString operand2) Return aValueBoolean.Expressionthat checks whetheroperand1matches the patternoperand2("matchesPattern").static ValueBoolean.ExpressionstartsWith(ValueString operand1, ValueString operand2) static ValueString.Expressionsubstring(ValueString operand1, ValueNumeric operand2) Returns aValueString.Expressionthat returns a substring ofoperand1starting atoperand2("substring").static ValueString.Expressionsubstring(ValueString operand1, ValueNumeric operand2, ValueNumeric operand3) Returns aValueString.Expressionthat returns a substring ofoperand1starting atoperand2with lengthoperand3("substring").static ValueBoolean.ExpressionsubstringOf(ValueString operand1, ValueString operand2) Returns aValueBoolean.Expressionthat checks whetheroperand1hasoperand2as a substring ("substringof").static ValueString.ExpressiontoLower(ValueString operand) static ValueString.ExpressiontoUpper(ValueString operand) static ValueString.Expressiontrim(ValueString operand) Returns aValueString.Expressionthat 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.Expressionthat checks whetheroperand1matches 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.Expressionthat 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.Expressionthat checks whetheroperand1hasoperand2as 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.Expressionthat returns a substring ofoperand1starting 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.Expressionthat returns a substring ofoperand1starting atoperand2with lengthoperand3("substring").- Parameters:
operand1- The operand.operand2- The start index.operand3- The length.- Returns:
- A
ValueString.Expression.
-