Interface FilterExpressionArithmetic


public interface FilterExpressionArithmetic
Set of OData filter functions for arithmetic types.
  • 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

      @Nonnull static ValueNumeric.Expression negate(@Nonnull ValueNumeric operand)
      Negation expression for numbers.
      Parameters:
      operand - The first, numeric operand.
      Returns:
      A new numeric expression.
    • negate

      @Nonnull static ValueDuration.Expression negate(@Nonnull ValueDuration operand)
      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

      @Nonnull static ValueNumeric.Expression ceiling(@Nonnull ValueNumeric operand)
      Ceil expression for numbers.
      Parameters:
      operand - The numeric operand.
      Returns:
      A new numeric expression.
    • floor

      @Nonnull static ValueNumeric.Expression floor(@Nonnull ValueNumeric operand)
      Floor expression for numbers.
      Parameters:
      operand - The numeric operand.
      Returns:
      A new numeric expression.
    • round

      @Nonnull static ValueNumeric.Expression round(@Nonnull ValueNumeric operand)
      Round expression for numbers.
      Parameters:
      operand - The numeric operand.
      Returns:
      A new numeric expression.