public static class IntConsumer.Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static IntConsumer |
andThen(IntConsumer c1,
IntConsumer c2)
Composes
IntConsumer calls. |
static IntConsumer |
safe(ThrowableIntConsumer<Throwable> throwableConsumer)
Creates a safe
IntConsumer. |
static IntConsumer |
safe(ThrowableIntConsumer<Throwable> throwableConsumer,
IntConsumer onFailedConsumer)
Creates a safe
IntConsumer. |
public static IntConsumer andThen(IntConsumer c1, IntConsumer c2)
IntConsumer calls.
c1.accept(value); c2.accept(value);
c1 - the first IntConsumerc2 - the second IntConsumerIntConsumerNullPointerException - if c1 or c2 is nullpublic static IntConsumer safe(ThrowableIntConsumer<Throwable> throwableConsumer)
IntConsumer.throwableConsumer - the consumer that may throw an exceptionIntConsumerNullPointerException - if throwableConsumer is nullsafe(com.annimon.stream.function.ThrowableIntConsumer, com.annimon.stream.function.IntConsumer)public static IntConsumer safe(ThrowableIntConsumer<Throwable> throwableConsumer, IntConsumer onFailedConsumer)
IntConsumer.throwableConsumer - the consumer that may throw an exceptiononFailedConsumer - the consumer which applies if exception was thrownIntConsumerNullPointerException - if throwableConsumer is nullsafe(com.annimon.stream.function.ThrowableIntConsumer)Copyright © 2017. All rights reserved.