T - consumed type@FunctionalInterface public interface ThrowingConsumer<T> extends Consumer<T>
Consumer that deals with checked exceptions by rethrowing them as RuntimeException.
More precisely, RuntimeException and AssertionError are rethrown as they are while any other Throwable are rethrown as RuntimeException.
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(T input) |
void |
acceptThrows(T input) |
Copyright © 2025. All rights reserved.