public final class LambdaUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> void |
applyToAllWhileSuppressingExceptions(Iterable<T> inputs,
ThrowingConsumer<T> throwingConsumer)
This method supplies all elements from the input to the consumer.
|
public static <T> void applyToAllWhileSuppressingExceptions(Iterable<T> inputs, ThrowingConsumer<T> throwingConsumer) throws Exception
T
- the type of input.inputs
- iterator for all inputs to the throwingConsumer.throwingConsumer
- this consumer will be called for all elements delivered by the input iterator.Exception
- collected exceptions that happened during the invocation of the consumer on the input elements.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.