T- type of the consumed elements.
E- type of the exception thrown.
@Public @FunctionalInterface public interface ThrowingConsumer<T,E extends Throwable>
Consumerinterface enhanced with the ability to throw an exception.
|Modifier and Type||Method and Description|
Performs this operation on the given argument.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.