org.mulgara.util
Interface Fn2E<T1,T2,R,E extends Exception>

Type Parameters:
T1 - The type of the first parameter of the function.
T2 - The type of the second parameter of the function.
R - The return type of the function.
E - The type of exception that may be thrown from the function.
All Known Subinterfaces:
Fn2<T1,T2,R>

public interface Fn2E<T1,T2,R,E extends Exception>

Functor template for a function that takes arguments of two different types and returns a value of a third type, possibly throwing an exception.

Author:
Paul Gearon

Method Summary
 R call(T1 arg1, T2 arg2)
          Declares a function template that takes two arguments and returns a value of another type.
 

Method Detail

call

R call(T1 arg1,
       T2 arg2)
       throws E extends Exception
Declares a function template that takes two arguments and returns a value of another type.

Parameters:
arg1 - The first argument.
arg2 - The second argument.
Returns:
A value based on arg1 and arg2.
Throws:
E - An exception that may be thrown from this method.
E extends Exception


Copyright © 2011. All Rights Reserved.