Interface Returnable<T>

Type Parameters:
T - The type to return.
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 interface Returnable<T>
Interface to allow wrapping of a returning call.
  • Method Summary

    Modifier and Type
    Method
    Description
    The call to invoke.
  • Method Details

    • invoke

      T invoke() throws Throwable
      The call to invoke.
      Returns:
      the return value of the wrapped call.
      Throws:
      Throwable