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