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

Type Parameters:
T1 - The parameter type of the function.
R - The return type of the function.
E - The exception type that the function may throw.
All Known Subinterfaces:
Fn1<T1,R>

public interface Fn1E<T1,R,E extends Exception>

Functor template for a function that takes one type and returns another. An exception may be thrown.

Author:
Paul Gearon

Method Summary
 R call(T1 arg)
          Declares a function template that takes one argument and returns a value of another type.
 

Method Detail

call

R call(T1 arg)
       throws E extends Exception
Declares a function template that takes one argument and returns a value of another type.

Parameters:
arg - The single argument.
Returns:
A value based on arg.
Throws:
E - Can throw an exception of this type.
E extends Exception


Copyright © 2011. All Rights Reserved.