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