info.javelot.functionalj
Class Function4Impl

java.lang.Object
  extended byinfo.javelot.functionalj.Function4Impl
All Implemented Interfaces:
Function4

public abstract class Function4Impl
extends Object
implements Function4

A base implementation of the Function4 interface, which implements all methods except for the Function4.call(Object, Object, Object, Object) method - that is left to subclasses to implement in order to define a function of 4 parameters.

Author:
Copyright © 2006 Frederic Daoud

Constructor Summary
Function4Impl()
           
 
Method Summary
 Function3 bind(Object p_param1)
          Binds the first parameter of this function of 4 parameters to return a new function of 3 parameters.
 Function2 bind(Object p_param1, Object p_param2)
          Binds the first 2 parameters of this function of 4 parameters to return a new function of 2 parameters.
 Function1 bind(Object p_param1, Object p_param2, Object p_param3)
          Binds the first 3 parameters of this function of 4 parameters to return a new function of 1 parameter.
 Function0 bind(Object p_param1, Object p_param2, Object p_param3, Object p_param4)
          Binds the 4 parameters of this function of 4 parameters to return a new function of no parameters.
 Function3 bind2(Object p_param2)
          Binds the second parameter of this function of 4 parameters to return a new function of 3 parameters.
 Function3 bind3(Object p_param3)
          Binds the third parameter of this function of 4 parameters to return a new function of 3 parameters.
 Function3 bind4(Object p_param4)
          Binds the fourth parameter of this function of 4 parameters to return a new function of 3 parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.javelot.functionalj.Function4
call
 

Constructor Detail

Function4Impl

public Function4Impl()
Method Detail

bind

public Function3 bind(Object p_param1)
Description copied from interface: Function4
Binds the first parameter of this function of 4 parameters to return a new function of 3 parameters.

Specified by:
bind in interface Function4
Parameters:
p_param1 - the parameter to bind to the first parameter of the function.
Returns:
a new function of 3 parameters.

bind

public Function2 bind(Object p_param1,
                      Object p_param2)
Description copied from interface: Function4
Binds the first 2 parameters of this function of 4 parameters to return a new function of 2 parameters.

Specified by:
bind in interface Function4
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 2 parameters.

bind

public Function1 bind(Object p_param1,
                      Object p_param2,
                      Object p_param3)
Description copied from interface: Function4
Binds the first 3 parameters of this function of 4 parameters to return a new function of 1 parameter.

Specified by:
bind in interface Function4
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 1 parameter.

bind

public Function0 bind(Object p_param1,
                      Object p_param2,
                      Object p_param3,
                      Object p_param4)
Description copied from interface: Function4
Binds the 4 parameters of this function of 4 parameters to return a new function of no parameters.

Specified by:
bind in interface Function4
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.
p_param4 - the parameter to bind to the fourth parameter of the function.
Returns:
a new function of no parameters.

bind2

public Function3 bind2(Object p_param2)
Description copied from interface: Function4
Binds the second parameter of this function of 4 parameters to return a new function of 3 parameters.

Specified by:
bind2 in interface Function4
Parameters:
p_param2 - the parameter to bind to the second parameter of the function.
Returns:
a new function of 3 parameters.

bind3

public Function3 bind3(Object p_param3)
Description copied from interface: Function4
Binds the third parameter of this function of 4 parameters to return a new function of 3 parameters.

Specified by:
bind3 in interface Function4
Parameters:
p_param3 - the parameter to bind to the third parameter of the function.
Returns:
a new function of 3 parameters.

bind4

public Function3 bind4(Object p_param4)
Description copied from interface: Function4
Binds the fourth parameter of this function of 4 parameters to return a new function of 3 parameters.

Specified by:
bind4 in interface Function4
Parameters:
p_param4 - the parameter to bind to the fourth parameter of the function.
Returns:
a new function of 3 parameters.