Class AbstractBinaryArithmeticOperator

    • Constructor Detail

      • AbstractBinaryArithmeticOperator

        public AbstractBinaryArithmeticOperator()
    • Method Detail

      • containsFraction

        private static boolean containsFraction​(Numeric n1,
                                                Numeric n2)
      • calculateDouble

        protected abstract double calculateDouble​(double n1,
                                                  double n2)
        Returns the result of evaluating an arithmetic expression using the two arguments
      • calculateLong

        protected abstract long calculateLong​(long n1,
                                              long n2)
        Returns the result of evaluating an arithmetic expression using the two arguments