Interface Expressions.Operand
- All Known Subinterfaces:
Expressions.OperandMultiple,Expressions.OperandSingle,FieldReference,FieldUntyped,FilterableBoolean,FilterableCollection,FilterableComparisonAbsolute,FilterableComparisonRelative,FilterableDate,FilterableDateTimeOffset,FilterableDuration,FilterableNumeric,FilterableString,FilterableTimeOfDay,FilterExpression,ValueBinary,ValueBoolean,ValueCollection,ValueDate,ValueDateTime,ValueDateTimeOffset,ValueDuration,ValueEnum,ValueGuid,ValueNumeric,ValueString,ValueTimeOfDay
- All Known Implementing Classes:
ValueBinary.Expression,ValueBoolean.Expression,ValueCollection.Expression,ValueDate.Expression,ValueDateTime.Expression,ValueDateTimeOffset.Expression,ValueDuration.Expression,ValueNumeric.Expression,ValueString.Expression,ValueTimeOfDay.Expression
- Enclosing class:
- Expressions
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Generic OData filter expression operand.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Expressions.OperandThe null operand, representing the absence of any value. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetExpression(ODataProtocol protocol) Create the String representation of the expression based on a givenODataProtocol.getExpression(ODataProtocol protocol, Map<String, Predicate<FieldReference>> prefixes) Create the String representation of the expression.
-
Field Details
-
NULL
The null operand, representing the absence of any value.
-
-
Method Details
-
getExpression
Create the String representation of the expression based on a givenODataProtocol.- Parameters:
protocol- TheODataProtocolthat the expression should conform to.- Returns:
- The expression String.
-
getExpression
@Nonnull String getExpression(@Nonnull ODataProtocol protocol, @Nonnull Map<String, Predicate<FieldReference>> prefixes) Create the String representation of the expression.- Parameters:
protocol- The OData protocol to derive serialization rules from.prefixes- Additional field prefixes, e.g. when using lambda expressions.- Returns:
- The expression String.
-