@FunctionalInterface public interface ThrowingConsumer<T,E extends Throwable>
允许抛出异常的消费操作。是一个特殊的 Consumer。
Consumer
void
accept(T t)
void accept(T t) throws E extends Throwable
t
E extends Throwable
Copyright © 2026. All rights reserved.