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:
- Serialized Form
-
-
Method Detail
-
validate
protected void validate(List<Number> arguments) throws ParseException
Validate the number of arguments.- Parameters:
arguments
- The function's arguments.- Throws:
ParseException
- In case of incorrect number of arguments.
-
call
public final Number call(List<Number> arguments) throws ParseException
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.
-
-