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