Package com.tapkey.mobile.utils
Interface Func<TRes,TException extends Exception>
-
- Type Parameters:
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>
Encapsulates a method that has no parameters and returns a value of the type specified by the TRes parameter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TRes
invoke()
Invokes the method with the given parameter.
-
-
-
Method Detail
-
invoke
TRes invoke() throws TException extends Exception
Invokes the method with the given parameter.- Returns:
- the return value of the method.
- Throws:
TException
- the exception the encapsulated method might throw.TException extends Exception
-
-