Interface OpenLambda.ThrowingFunction<T,R>

Type Parameters:
T - the input type | 输入类型
R - the result type | 结果类型
Enclosing class:
OpenLambda
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 OpenLambda.ThrowingFunction<T,R>
A function that can throw checked exceptions 可以抛出检查异常的函数
Since:
JDK 25, opencode-base-reflect V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Applies this function 应用此函数
  • Method Details

    • apply

      R apply(T t) throws Exception
      Applies this function 应用此函数
      Parameters:
      t - the input | 输入
      Returns:
      the result | 结果
      Throws:
      Exception - if an error occurs | 如果发生错误