@FunctionalInterface public interface CheckedLongConsumer
LongConsumer that allows for checked exceptions.| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(long value) |
Performs this operation on the given argument.
|
static LongConsumer |
sneaky(CheckedLongConsumer consumer) |
|
static LongConsumer |
unchecked(CheckedLongConsumer consumer) |
|
static LongConsumer |
unchecked(CheckedLongConsumer consumer,
Consumer<Throwable> handler) |
void accept(long value)
throws Throwable
value - the input argumentThrowablestatic LongConsumer sneaky(CheckedLongConsumer consumer)
static LongConsumer unchecked(CheckedLongConsumer consumer)
static LongConsumer unchecked(CheckedLongConsumer consumer, Consumer<Throwable> handler)
Copyright © 2018. All rights reserved.