Class ExtensionsConsole.PrintfFunction

    • Constructor Detail

      • PrintfFunction

        public PrintfFunction​(java.lang.String sep,
                              java.lang.String term)
        Constructor with specified separator and terminator
        Parameters:
        sep - separator
      • PrintfFunction

        public PrintfFunction()
        Constructor with default System.out for output and ", " for the separator.
    • Method Detail

      • eval

        public java.lang.Object eval​(java.lang.Object[] args)
                              throws EvaluationException
        Description copied from class: NaryFunction
        Evaluate the function
        Specified by:
        eval in class NaryFunction
        Parameters:
        args - arguments to the function
        Returns:
        value returned by the function
        Throws:
        EvaluationException - if the calculation cannot be performed