| Package | Description |
|---|---|
| org.sellcom.core.util.function |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingConsumer<T> |
ThrowingConsumer.orThrow(Class<? extends RuntimeException> exceptionClass)
Returns a
ThrowingConsumer throwing an exception of the given type if this operation throws an exception. |
default ThrowingConsumer<T> |
ThrowingConsumer.orThrow(Class<? extends RuntimeException> exceptionClass,
String message)
Returns a
ThrowingConsumer throwing an exception of the given type if this operation throws an exception. |
default ThrowingConsumer<T> |
ThrowingConsumer.orTryWith(ThrowingConsumer<? super T> other)
Returns a
ThrowingConsumer performing the given operation on the argument if this operation throws an exception. |
default ThrowingConsumer<T> |
ThrowingConsumer.orTryWith(ThrowingConsumer<? super T> other,
Consumer<Exception> exceptionConsumer)
Returns a
ThrowingConsumer performing the given operation on the argument if this operation throws an exception. |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingConsumer<T> |
ThrowingConsumer.orTryWith(ThrowingConsumer<? super T> other)
Returns a
ThrowingConsumer performing the given operation on the argument if this operation throws an exception. |
default ThrowingConsumer<T> |
ThrowingConsumer.orTryWith(ThrowingConsumer<? super T> other,
Consumer<Exception> exceptionConsumer)
Returns a
ThrowingConsumer performing the given operation on the argument if this operation throws an exception. |