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