info.javelot.functionalj
Interface Function3

All Known Implementing Classes:
Function3Impl

public interface Function3

Interface that represents a function of 3 parameters.

Author:
Copyright © 2006 Frederic Daoud

Method Summary
 Function2 bind(Object p_param1)
          Binds the first parameter of this function of 3 parameters to return a new function of 2 parameters.
 Function1 bind(Object p_param1, Object p_param2)
          Binds the first 2 parameters of this function of 3 parameters to return a new function of 1 parameter.
 Function0 bind(Object p_param1, Object p_param2, Object p_param3)
          Binds the 3 parameters of this function of 3 parameters to return a new function of no parameters.
 Function2 bind2(Object p_param2)
          Binds the second parameter of this function of 3 parameters to return a new function of 2 parameters.
 Function2 bind3(Object p_param3)
          Binds the third parameter of this function of 3 parameters to return a new function of 2 parameters.
 Object call(Object p_param1, Object p_param2, Object p_param3)
          Calls the function on the given parameters and returns the result.
 

Method Detail

call

public Object call(Object p_param1,
                   Object p_param2,
                   Object p_param3)
            throws FunctionException
Calls the function on the given parameters and returns the result.

Parameters:
p_param1 - the first parameter to the function.
p_param2 - the second parameter to the function.
p_param3 - the third parameter to the function.
Returns:
the result of the function call.
Throws:
FunctionException - thrown if an exception occurs during the function call.

bind

public Function2 bind(Object p_param1)
Binds the first parameter of this function of 3 parameters to return a new function of 2 parameters.

Parameters:
p_param1 - the parameter to bind to the first parameter of the function.
Returns:
a new function of 2 parameters.

bind

public Function1 bind(Object p_param1,
                      Object p_param2)
Binds the first 2 parameters of this function of 3 parameters to return a new function of 1 parameter.

Parameters:
p_param1 - the parameter to bind to the first parameter of the function.
p_param2 - the parameter to bind to the second parameter of the function.
Returns:
a new function of 1 parameter.

bind

public Function0 bind(Object p_param1,
                      Object p_param2,
                      Object p_param3)
Binds the 3 parameters of this function of 3 parameters to return a new function of no parameters.

Parameters:
p_param1 - the parameter to bind to the first parameter of the function.
p_param2 - the parameter to bind to the second parameter of the function.
p_param3 - the parameter to bind to the third parameter of the function.
Returns:
a new function of no parameters.

bind2

public Function2 bind2(Object p_param2)
Binds the second parameter of this function of 3 parameters to return a new function of 2 parameters.

Parameters:
p_param2 - the parameter to bind to the second parameter of the function.
Returns:
a new function of 2 parameters.

bind3

public Function2 bind3(Object p_param3)
Binds the third parameter of this function of 3 parameters to return a new function of 2 parameters.

Parameters:
p_param3 - the parameter to bind to the third parameter of the function.
Returns:
a new function of 2 parameters.