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

Type Parameters:
R - The return type of the function.
E - The type of an exception that may be thrown from the function.
All Superinterfaces:
Callable<R>
All Known Subinterfaces:
Fn<R>

public interface FnE<R,E extends Exception>
extends Callable<R>

Functor template for a function that accepts no parameters, and has a return type. An exception may be thrown.

Author:
Paul Gearon

Method Summary
 R call()
          Declares a function template that takes no arguments and returns a value.
 

Method Detail

call

R call()
       throws E extends Exception
Declares a function template that takes no arguments and returns a value.

Specified by:
call in interface Callable<R>
Returns:
A calculated value.
Throws:
E - Can throw an exception of this type.
E extends Exception


Copyright © 2011. All Rights Reserved.