Interface HandleUtil.MethodHandleInvoker<R>
- Type Parameters:
R- The type returned by the method handle invocation.
- Enclosing class:
HandleUtil
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents the invocation to be carried out on the method handle.
This is effectively a Supplier, except it can throw.
This is a FunctionalInterface whose functional method is invoke().
- Since:
- 9.0.0
-
Method Summary
-
Method Details
-
invoke
Executes the method handle and returns the result.- Returns:
- The result of the method handle invocation.
- Throws:
Throwable- If an exception is thrown during invocation.- Since:
- 9.0.0
-