接口 ThrowableSupplier<T,E extends Throwable>

类型参数:
T - type of return value
E - type of exception
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface ThrowableSupplier<T,E extends Throwable>
A throwable supplier is a functional interface which consists on a single get function which is able to throw an exception.
  • 方法概要

    修饰符和类型
    方法
    说明
    get()
    Gets the the result.
  • 方法详细资料

    • get

      T get() throws E
      Gets the the result.
      返回:
      result
      抛出:
      E extends Throwable