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.

@FunctionalInterface public static interface HandleUtil.MethodHandleInvoker<R>
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

    Modifier and Type
    Method
    Description
    Executes the method handle and returns the result.
  • Method Details

    • invoke

      R invoke() throws Throwable
      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