Interface NumericExpression<T>

Type Parameters:
T - Number type
All Superinterfaces:
ComparableExpression<Number>, Expression<Number>

public interface NumericExpression<T> extends ComparableExpression<Number>
Representation of a numeric expression.
  • Method Details

    • add

      Method to return an expression for this expression added to the passed expression.
      Parameters:
      expr - The other expression
      Returns:
      The summation
    • add

      Method to return an expression for this expression added to the passed number.
      Parameters:
      num - Number to add
      Returns:
      The summation
    • sub

      Method to return an expression for this expression subtracting the passed expression.
      Parameters:
      expr - The other expression
      Returns:
      The difference
    • sub

      Method to return an expression for this expression subtracting the passed number.
      Parameters:
      num - Number to subtract
      Returns:
      The difference
    • mul

      Method to return an expression for this expression multiplied by the passed expression.
      Parameters:
      expr - The other expression
      Returns:
      The multiplication
    • mul

      Method to return an expression for this expression multiplied by the passed number.
      Parameters:
      num - Number
      Returns:
      The multiplication
    • div

      Method to return an expression for this expression divided by the passed expression.
      Parameters:
      expr - The other expression
      Returns:
      The division
    • div

      Method to return an expression for this expression divided by the passed number.
      Parameters:
      num - Number to divide by
      Returns:
      The division
    • mod

      Method to return an expression for this expression modulus the passed expression (
      a % b
      ).
      Parameters:
      expr - The other expression
      Returns:
      The modulus
    • mod

      Method to return an expression for this expression modulus the passed number.
      Parameters:
      num - Number
      Returns:
      The modulus
    • neg

      Method to return an expression that is the current expression negated.
      Returns:
      The negated expression
    • com

      Method to return an expression that is the complement of the current expression.
      Returns:
      The complement expression
    • avg

      Method to return a numeric expression representing the aggregated average of this expression.
      Returns:
      Numeric expression for the average
    • avgDistinct

      NumericExpression<Double> avgDistinct()
      Method to return a numeric expression representing the aggregated average of this distinct expression.
      Returns:
      Numeric expression for the average
    • sum

      Method to return a numeric expression representing the aggregated sum of this expression.
      Returns:
      Numeric expression for the sum
    • sumDistinct

      NumericExpression<T> sumDistinct()
      Method to return a numeric expression representing the aggregated sum of this distinct expression.
      Returns:
      Numeric expression for the sum
    • abs

      Method to return the absolute value expression of this expression.
      Returns:
      The absolute value expression
    • sqrt

      Method to return the square-root value expression of this expression.
      Returns:
      The square-root value expression
    • acos

      Method to return the arc cosine value expression of this expression.
      Returns:
      The arc cosine value expression
    • asin

      Method to return the arc sine value expression of this expression.
      Returns:
      The arc sine value expression
    • atan

      Method to return the arc tangent value expression of this expression.
      Returns:
      The arc tangent value expression
    • sin

      Method to return the sine value expression of this expression.
      Returns:
      The sine value expression
    • cos

      Method to return the cosine value expression of this expression.
      Returns:
      The cosine value expression
    • tan

      Method to return the tangent value expression of this expression.
      Returns:
      The tangent value expression
    • exp

      Method to return the exponential value expression of this expression.
      Returns:
      The exponential value expression
    • log

      Method to return the logarithm value expression of this expression.
      Returns:
      The logarithm value expression
    • ceil

      Method to return the ceiling value expression of this expression.
      Returns:
      The ceiling value expression
    • floor

      Method to return the floor value expression of this expression.
      Returns:
      The floor value expression
    • bAnd

      Method to return a bitwise AND expression for this expression with the supplied bit path.
      Parameters:
      bitExpr - Bit expression
      Returns:
      Bitwise AND expression
    • bOr

      Method to return a bitwise OR expression for this expression with the supplied bit path.
      Parameters:
      bitExpr - Bit expression
      Returns:
      Bitwise OR expression
    • bXor

      Method to return a bitwise XOR expression for this expression with the supplied bit path.
      Parameters:
      bitExpr - Bit expression
      Returns:
      Bitwise XOR expression