jfun.jaskell.function
Class Function2

java.lang.Object
  extended byjfun.jaskell.function.Function1
      extended byjfun.jaskell.function.Function2
All Implemented Interfaces:
Function, java.io.Serializable
Direct Known Subclasses:
jfun.jaskell.AbstractFunction2

public abstract class Function2
extends Function1

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

Zephyr Business Solutions Corp.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
Function2()
           
 
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)
          Override this method to provide function with two 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

Function2

public Function2()
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)
                               throws java.lang.Throwable
Override this method to provide function with two parameters.

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