| Modifier and Type | Method | Description |
|---|---|---|
static <T,E extends Exception> |
ObjIntConsumerWithException.failing(Supplier<E> exceptionBuilder) |
Returns an operation that always throw exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T,E extends Exception> |
ObjIntConsumerWithException.asBiConsumer(ObjIntConsumerWithException<T,E> operation) |
Converts a
ObjIntConsumerWithException to a
BiConsumerWithException returning null. |
static <T,E extends Exception> |
ObjIntConsumerWithException.ignored(ObjIntConsumerWithException<T,E> operation) |
Converts a
ObjIntConsumerWithException to a lifted
ObjIntConsumer ignoring exception. |
static <T,E extends Exception> |
ObjIntConsumerWithException.lifted(ObjIntConsumerWithException<T,E> operation) |
Converts a
ObjIntConsumerWithException to a lifted
ObjIntConsumer ignoring exception. |
static <T,E extends Exception> |
ObjIntConsumerWithException.staged(ObjIntConsumerWithException<T,E> operation) |
Converts a
ObjIntConsumerWithException to a staged BiFunction
. |
static <T,E extends Exception> |
ObjIntConsumerWithException.unchecked(ObjIntConsumerWithException<T,E> operation) |
Converts a
ObjIntConsumerWithException to a ObjIntConsumer
that wraps exception to RuntimeException. |
static <T,E extends Exception> |
ObjIntConsumerWithException.unchecked(ObjIntConsumerWithException<T,E> operation,
Function<Exception,RuntimeException> exceptionMapper) |
Converts a
ObjIntConsumerWithException to a ObjIntConsumer
that wraps exception to RuntimeException by using the provided
mapping function. |
Copyright © 2019. All rights reserved.