@FunctionalInterface
public interface CheckedIntConsumer
IntConsumer that allows for checked exceptions.| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(int value) |
Performs this operation on the given argument.
|
static java.util.function.IntConsumer |
sneaky(CheckedIntConsumer consumer) |
|
static java.util.function.IntConsumer |
unchecked(CheckedIntConsumer consumer) |
|
static java.util.function.IntConsumer |
unchecked(CheckedIntConsumer consumer,
java.util.function.Consumer<java.lang.Throwable> handler) |
void accept(int value)
throws java.lang.Throwable
value - the input argumentjava.lang.Throwablestatic java.util.function.IntConsumer sneaky(CheckedIntConsumer consumer)
static java.util.function.IntConsumer unchecked(CheckedIntConsumer consumer)
static java.util.function.IntConsumer unchecked(CheckedIntConsumer consumer, java.util.function.Consumer<java.lang.Throwable> handler)
Copyright © 2018. All rights reserved.