org.dishevelled.functor
Interface NaryFunction<E,RV>

Type Parameters:
E - argument type
RV - return value type

public interface NaryFunction<E,RV>

Typed functor that takes an arbitrary number of arguments of the same type E and returns a value of type RV.

Version:
$Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
Author:
Michael Heuer

Method Summary
 RV evaluate(E... e)
          Evaluate this function with the specified arguments.
 

Method Detail

evaluate

RV evaluate(E... e)
Evaluate this function with the specified arguments.

The arguments may be passed as an array

  f.evaluate(new E[] { e0, e1, e2, e3 })
or as a sequence of arguments:
  f.evaluate(e1, e2, e3, e4)

For more information on varargs, see
> http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html

Parameters:
e - arbitrary number of arguments to this execution
Returns:
the result of this evaluation


Copyright (c) 2004-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).