Class Expressions
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.expression.Expressions
Wrapper class for expression types. The types listed here are used to differentiate input and output parameters of
functions used in expressions of OData filters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceGeneric OData filter expression operand.static interfaceOData filter collection expression operand.static interfaceSingular OData filter expression operand. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <PrimitiveT>
Expressions.OperandSinglecreateOperand(PrimitiveT value) Helper function to generate an OData filter expression operand for a primitive Java type.
-
Constructor Details
-
Expressions
public Expressions()
-
-
Method Details
-
createOperand
@Nonnull public static <PrimitiveT> Expressions.OperandSingle createOperand(@Nullable PrimitiveT value) Helper function to generate an OData filter expression operand for a primitive Java type.- Type Parameters:
PrimitiveT- Type of the Java literal.- Parameters:
value- Java literal.- Returns:
- The OData filter expression operand representation of the Java literal.
- Throws:
IllegalArgumentException- When there is no mapping found for the provided Java literal.
-