public static class ValueDuration.Expression extends Object implements FilterExpression, ValueDuration
ValueDuration.Expression
NULL
Constructor and Description |
---|
Expression(FilterExpression delegate) |
Modifier and Type | Method and Description |
---|---|
String |
getExpression(ODataProtocol protocol)
Create the String representation of the expression based on a given
ODataProtocol . |
String |
getExpression(ODataProtocol protocol,
Map<String,Predicate<FieldReference>> prefixes)
Create the String representation of the expression.
|
List<Expressions.Operand> |
getOperands()
List of the operands used for the OData filter expression.
|
String |
getOperator()
String representation of the OData filter expression operator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
literal
add, add, divide, divide, multiply, multiply, negate, offsetSeconds, subtract, subtract
equalTo, equalTo, notEqualTo, notEqualTo
greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, lessThan, lessThan, lessThanEqual, lessThanEqual
public Expression(FilterExpression delegate)
public String getOperator()
FilterExpression
getOperator
in interface FilterExpression
public List<Expressions.Operand> getOperands()
FilterExpression
getOperands
in interface FilterExpression
public String getExpression(ODataProtocol protocol)
Expressions.Operand
ODataProtocol
.getExpression
in interface Expressions.Operand
protocol
- The ODataProtocol
that the expression should conform to.public String getExpression(ODataProtocol protocol, Map<String,Predicate<FieldReference>> prefixes)
Expressions.Operand
getExpression
in interface Expressions.Operand
protocol
- The OData protocol to derive serialization rules from.prefixes
- Additional field prefixes, e.g. when using lambda expressions.Copyright © 2021 SAP SE. All rights reserved.