Interface ArithmeticOperator

All Known Subinterfaces:
Numeric, PreprocessableArithmeticOperator
All Known Implementing Classes:
Abs, AbstractArithmeticOperator, AbstractBinaryArithmeticOperator, AbstractBinaryIntegerArithmeticOperator, AbstractUnaryArithmeticOperator, Add, BitwiseAnd, BitwiseOr, BitwiseXor, DecimalFraction, Divide, IntegerDivide, IntegerNumber, Max, Min, Minus, Modulo, Multiply, Power, Random, Remainder, Round, ShiftLeft, ShiftRight, Subtract

public interface ArithmeticOperator
Represents a function that returns a single numerical value.

Class diagram

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the result of the calculation using the specified arguments.
  • Method Details

    • calculate

      Numeric calculate(Term args)
      Returns the result of the calculation using the specified arguments.
      Parameters:
      args - the arguments to use in the calculation
      Returns:
      the result of the calculation using the specified arguments