| Package | Description |
|---|---|
| org.sellcom.core.util.function |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ThrowingBinaryOperator<T>
Represents an operation on two operands of the same type, producing a result of the same type as the operands, possibly throwing an exception.
|
| Modifier and Type | Method and Description |
|---|---|
default <V> ThrowingBiFunction<T,U,V> |
ThrowingBiFunction.andThen(ThrowingFunction<? super R,? extends V> after)
Returns a composed
ThrowingBiFunction that first applies this function to the arguments, and then applies the after function to the result. |
default ThrowingBiFunction<T,U,R> |
ThrowingBiFunction.orThrow(Class<? extends RuntimeException> exceptionClass)
Returns a
ThrowingBiFunction throwing an exception of the given type if this function throws an exception. |
default ThrowingBiFunction<T,U,R> |
ThrowingBiFunction.orThrow(Class<? extends RuntimeException> exceptionClass,
String message)
Returns a
ThrowingBiFunction throwing an exception of the given type if this function throws an exception. |
default ThrowingBiFunction<T,U,R> |
ThrowingBiFunction.orTryWith(ThrowingBiFunction<? super T,? super U,? extends R> other)
Returns a
ThrowingBiFunction applying the given function to the arguments if this function throws an exception. |
default ThrowingBiFunction<T,U,R> |
ThrowingBiFunction.orTryWith(ThrowingBiFunction<? super T,? super U,? extends R> other,
Consumer<Exception> exceptionConsumer)
Returns a
ThrowingBiFunction applying the given function to the arguments if this function throws an exception. |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingBiFunction<T,U,R> |
ThrowingBiFunction.orTryWith(ThrowingBiFunction<? super T,? super U,? extends R> other)
Returns a
ThrowingBiFunction applying the given function to the arguments if this function throws an exception. |
default ThrowingBiFunction<T,U,R> |
ThrowingBiFunction.orTryWith(ThrowingBiFunction<? super T,? super U,? extends R> other,
Consumer<Exception> exceptionConsumer)
Returns a
ThrowingBiFunction applying the given function to the arguments if this function throws an exception. |