public class BinaryBooleanFunction extends org.nfunk.jep.function.PostfixMathCommand implements MultiStrategyCommand
The function will always return true if both parameters are equal.
| Modifier and Type | Class and Description |
|---|---|
static class |
BinaryBooleanFunction.Strategy
Defines particular strategies for the
BinaryBooleanFunction. |
| Constructor and Description |
|---|
BinaryBooleanFunction(BinaryBooleanFunction.Strategy operation)
Builds this custom command with a fixed number of 2 parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getStrategy() |
void |
run(Stack stack) |
public BinaryBooleanFunction(BinaryBooleanFunction.Strategy operation)
operation - the BinaryBooleanFunction.Strategy to be setpublic void run(Stack stack) throws org.nfunk.jep.ParseException
run in interface org.nfunk.jep.function.PostfixMathCommandIrun in class org.nfunk.jep.function.PostfixMathCommandorg.nfunk.jep.ParseExceptionComparative.run(java.util.Stack)public Object getStrategy()
getStrategy in interface MultiStrategyCommandMultiStrategyCommand.getStrategy()Copyright © 2023. All rights reserved.