Interface FilterExpressionArithmetic
public interface FilterExpressionArithmetic
Set of OData filter functions for arithmetic types.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ValueDate.Expression
add
(ValueDate operand1, ValueDuration operand2) Addition expression for date and duration.add
(ValueDateTimeOffset operand1, ValueDuration operand2) Addition expression for date time and duration.static ValueDuration.Expression
add
(ValueDuration operand1, ValueDuration operand2) Addition expression for duration and duration.static ValueNumeric.Expression
add
(ValueNumeric operand1, ValueNumeric operand2) Addition expression for numbers.static ValueNumeric.Expression
ceiling
(ValueNumeric operand) Ceil expression for numbers.static ValueDuration.Expression
divide
(ValueDuration operand1, ValueNumeric operand2) Division expression for duration.static ValueNumeric.Expression
divide
(ValueNumeric operand1, ValueNumeric operand2) Division expression for floating point numbers.static ValueNumeric.Expression
divideEuclidean
(ValueNumeric operand1, ValueNumeric operand2) Division expression for integer numbers.static ValueNumeric.Expression
floor
(ValueNumeric operand) Floor expression for numbers.static ValueNumeric.Expression
modulo
(ValueNumeric operand1, ValueNumeric operand2) Modulo expression for numbers.static ValueDuration.Expression
multiply
(ValueDuration operand1, ValueNumeric operand2) Multiplication expression for duration and number.static ValueNumeric.Expression
multiply
(ValueNumeric operand1, ValueNumeric operand2) Multiplication expression for numbers.static ValueDuration.Expression
negate
(ValueDuration operand) Negation expression for duration.static ValueNumeric.Expression
negate
(ValueNumeric operand) Negation expression for numbers.static ValueNumeric.Expression
round
(ValueNumeric operand) Round expression for numbers.static ValueDuration.Expression
Subtraction expression for date and date.static ValueDate.Expression
subtract
(ValueDate operand1, ValueDuration operand2) Subtraction expression for date and duration.subtract
(ValueDateTimeOffset operand1, ValueDuration operand2) Subtraction expression for date time and duration.static ValueDuration.Expression
subtract
(ValueDuration operand1, ValueDuration operand2) Subtraction expression for duration and duration.static ValueNumeric.Expression
subtract
(ValueNumeric operand1, ValueNumeric operand2) Subtraction expression for numbers.
-
Method Details
-
add
@Nonnull static ValueNumeric.Expression add(@Nonnull ValueNumeric operand1, @Nonnull ValueNumeric operand2) Addition expression for numbers.- Parameters:
operand1
- The first, numeric operand.operand2
- The second, numeric operand.- Returns:
- A new numeric expression.
-
add
@Nonnull static ValueDateTimeOffset.Expression add(@Nonnull ValueDateTimeOffset operand1, @Nonnull ValueDuration operand2) Addition expression for date time and duration.- Parameters:
operand1
- The first, date-time-offset operand.operand2
- The second, duration operand.- Returns:
- A new date-time-offset expression.
-
add
@Nonnull static ValueDuration.Expression add(@Nonnull ValueDuration operand1, @Nonnull ValueDuration operand2) Addition expression for duration and duration.- Parameters:
operand1
- The first, duration operand.operand2
- The second, duration operand.- Returns:
- A new duration expression.
-
add
@Nonnull static ValueDate.Expression add(@Nonnull ValueDate operand1, @Nonnull ValueDuration operand2) Addition expression for date and duration.- Parameters:
operand1
- The first, date operand.operand2
- The second, duration operand.- Returns:
- A new date expression.
-
subtract
@Nonnull static ValueNumeric.Expression subtract(@Nonnull ValueNumeric operand1, @Nonnull ValueNumeric operand2) Subtraction expression for numbers.- Parameters:
operand1
- The first, numeric operand.operand2
- The second, numeric operand.- Returns:
- A new numeric expression.
-
subtract
@Nonnull static ValueDateTimeOffset.Expression subtract(@Nonnull ValueDateTimeOffset operand1, @Nonnull ValueDuration operand2) Subtraction expression for date time and duration.- Parameters:
operand1
- The first, date-time-offset operand.operand2
- The second, duration operand.- Returns:
- A new date-time-offset expression.
-
subtract
@Nonnull static ValueDuration.Expression subtract(@Nonnull ValueDuration operand1, @Nonnull ValueDuration operand2) Subtraction expression for duration and duration.- Parameters:
operand1
- The first, duration operand.operand2
- The second, duration operand.- Returns:
- A new duration expression.
-
subtract
@Nonnull static ValueDate.Expression subtract(@Nonnull ValueDate operand1, @Nonnull ValueDuration operand2) Subtraction expression for date and duration.- Parameters:
operand1
- The first, date operand.operand2
- The second, duration operand.- Returns:
- A new date expression.
-
subtract
@Nonnull static ValueDuration.Expression subtract(@Nonnull ValueDate operand1, @Nonnull ValueDate operand2) Subtraction expression for date and date.- Parameters:
operand1
- The first, date operand.operand2
- The second, date operand.- Returns:
- A new duration expression.
-
negate
Negation expression for numbers.- Parameters:
operand
- The first, numeric operand.- Returns:
- A new numeric expression.
-
negate
Negation expression for duration.- Parameters:
operand
- The first, duration operand.- Returns:
- A new duration expression.
-
multiply
@Nonnull static ValueNumeric.Expression multiply(@Nonnull ValueNumeric operand1, @Nonnull ValueNumeric operand2) Multiplication expression for numbers.- Parameters:
operand1
- The first, numeric operand.operand2
- The second, numeric operand.- Returns:
- A new numeric expression.
-
multiply
@Nonnull static ValueDuration.Expression multiply(@Nonnull ValueDuration operand1, @Nonnull ValueNumeric operand2) Multiplication expression for duration and number.- Parameters:
operand1
- The first, duration operand.operand2
- The second, numeric operand.- Returns:
- A new duration expression.
-
divide
@Nonnull static ValueNumeric.Expression divide(@Nonnull ValueNumeric operand1, @Nonnull ValueNumeric operand2) Division expression for floating point numbers.- Parameters:
operand1
- The first, numeric operand.operand2
- The second, numeric operand.- Returns:
- A new numeric expression.
-
divideEuclidean
@Nonnull static ValueNumeric.Expression divideEuclidean(@Nonnull ValueNumeric operand1, @Nonnull ValueNumeric operand2) Division expression for integer numbers.- Parameters:
operand1
- The first, numeric operand.operand2
- The second, numeric operand.- Returns:
- A new numeric expression.
-
divide
@Nonnull static ValueDuration.Expression divide(@Nonnull ValueDuration operand1, @Nonnull ValueNumeric operand2) Division expression for duration.- Parameters:
operand1
- The first, duration operand.operand2
- The second, numeric operand.- Returns:
- A new duration expression.
-
modulo
@Nonnull static ValueNumeric.Expression modulo(@Nonnull ValueNumeric operand1, @Nonnull ValueNumeric operand2) Modulo expression for numbers.- Parameters:
operand1
- The first, numeric operand.operand2
- The second, numeric operand.- Returns:
- A new numeric expression.
-
ceiling
Ceil expression for numbers.- Parameters:
operand
- The numeric operand.- Returns:
- A new numeric expression.
-
floor
Floor expression for numbers.- Parameters:
operand
- The numeric operand.- Returns:
- A new numeric expression.
-
round
Round expression for numbers.- Parameters:
operand
- The numeric operand.- Returns:
- A new numeric expression.
-