T - 输入类型E - 允许抛出的异常类型@FunctionalInterface public interface ThrowingConsumer<T,E extends Exception>
类似于 Consumer,但 accept 方法允许抛出受检异常。
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t)
对给定参数执行此操作。
|
Copyright © 2026. All rights reserved.