Interface OpenLambda.ThrowingConsumer<T>

Type Parameters:
T - the input 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.ThrowingConsumer<T>
A consumer 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
    void
    accept(T t)
    Performs this operation 执行此操作
  • Method Details

    • accept

      void accept(T t) throws Exception
      Performs this operation 执行此操作
      Parameters:
      t - the input | 输入
      Throws:
      Exception - if an error occurs | 如果发生错误