TRes
- the type of the return value of the encapsulated method.TException
- the type of exception that might be thrown.public interface Func<TRes,TException extends Exception>
Modifier and Type | Method and Description |
---|---|
TRes |
invoke()
Invokes the method with the given parameter.
|
TRes invoke() throws TException extends Exception
TException
- the exception the encapsulated method might throw.TException extends Exception