# 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.

Version:
  1.16.0
Author:
  Mikko Tommila
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `FixedFunction()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final Number`
  `call(List<Number> arguments)`
  Call the function.
  `protected void`
  `validate(List<Number> arguments)`
  Validate the number of arguments.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FixedFunction

    protected FixedFunction()

- ## Method Details

  - ### 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 interface `FunctionCalculatorImpl.Function`
    Parameters:
      `arguments` - The function's arguments.
    Returns:
      The function's value.
    Throws:
      `ParseException` - In case the arguments are invalid.