Package org.apfloat.calc
Class FunctionCalculatorImpl.FixedFunction
java.lang.Object
org.apfloat.calc.FunctionCalculatorImpl.FixedFunction
- All Implemented Interfaces:
Serializable
,FunctionCalculatorImpl.Function
- Enclosing class:
FunctionCalculatorImpl
protected class FunctionCalculatorImpl.FixedFunction
extends Object
implements FunctionCalculatorImpl.Function
Function taking a fixed number of arguments.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FixedFunction
protected FixedFunction()
-
-
Method Details
-
validate
Validate the number of arguments.- Parameters:
arguments
- The function's arguments.- Throws:
ParseException
- In case of incorrect number of arguments.
-
call
Description copied from interface:FunctionCalculatorImpl.Function
Call the function.- Specified by:
call
in interfaceFunctionCalculatorImpl.Function
- Parameters:
arguments
- The function's arguments.- Returns:
- The function's value.
- Throws:
ParseException
- In case the arguments are invalid.
-