public class Subtract extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
Subtract() |
| Modifier and Type | Method and Description |
|---|---|
void |
run(Stack inStack)
Throws an exception because this method should never be called under
normal circumstances.
|
Complex |
sub(Complex c1,
Complex c2) |
Complex |
sub(Complex c,
Number d) |
Complex |
sub(Number d,
Complex c) |
Double |
sub(Number d1,
Number d2) |
Object |
sub(Object param1,
Object param2) |
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic void run(Stack inStack) throws ParseException
PostfixMathCommandrun in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionpublic Object sub(Object param1, Object param2) throws ParseException
ParseExceptionCopyright © 2018. All rights reserved.