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