jfun.jaskell.function
Class Function3

java.lang.Object
  extended by jfun.jaskell.function.Function1
      extended by jfun.jaskell.function.Function3
All Implemented Interfaces:
java.io.Serializable, Function
Direct Known Subclasses:
StrictFunction3

public abstract class Function3
extends Function1

Default implementation of Function. Subclass it to provide function with three parameters.

Zephyr Business Solutions Corp.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
Function3()
           
 
Method Summary
 java.lang.Object call(java.lang.Object o1)
          Override this method to provide function with one parameter.
abstract  java.lang.Object call(java.lang.Object o1, java.lang.Object o2, java.lang.Object o3)
          Override this method to provide function with three parameters.
 
Methods inherited from class jfun.jaskell.function.Function1
apply, apply, f
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Function3

public Function3()
Method Detail

call

public java.lang.Object call(java.lang.Object o1)
Description copied from class: Function1
Override this method to provide function with one parameter.

Specified by:
call in class Function1
Parameters:
o1 - the argument.
Returns:
the return value.

call

public abstract java.lang.Object call(java.lang.Object o1,
                                      java.lang.Object o2,
                                      java.lang.Object o3)
                               throws java.lang.Throwable
Override this method to provide function with three parameters.

Parameters:
o1 - 1st argument.
o2 - 2nd argument.
o3 - 3rd argument.
Returns:
the return value.
Throws:
java.lang.Throwable