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