public abstract class AbstractBinaryArithmeticOperator extends AbstractArithmeticOperator
ArithmeticOperators that accept two arguments.| Constructor and Description |
|---|
AbstractBinaryArithmeticOperator() |
| Modifier and Type | Method and Description |
|---|---|
Numeric |
calculate(Numeric n1,
Numeric n2) |
protected abstract double |
calculateDouble(double n1,
double n2)
Returns the result of evaluating an arithmetic expression using the two arguments
|
protected abstract long |
calculateLong(long n1,
long n2)
Returns the result of evaluating an arithmetic expression using the two arguments
|
calculate, calculate, isPure, preprocess, setKnowledgeBasepublic final Numeric calculate(Numeric n1, Numeric n2)
calculate in class AbstractArithmeticOperatorprotected abstract double calculateDouble(double n1,
double n2)
protected abstract long calculateLong(long n1,
long n2)
Copyright © 2024. All rights reserved.