Interface Function<R,A>

Type Parameters:
T - the result type of eval(Object...)
All Known Implementing Classes:
FunctionTask

public interface Function<R,A>
Generic function interface to perform an action w/ given optional arguments producing an optional result.

For void functions, simply use type Object and ignore the result and/or arguments.

  • Method Summary

    Modifier and Type
    Method
    Description
    eval(A... args)
    Implementation may compute variable args list and returns a result.
  • Method Details

    • eval

      R eval(A... args)
      Implementation may compute variable args list and returns a result.
      Parameters:
      args - variable argument list, A[], maybe null
      Returns:
      the result.