| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < return type of callable T, return type of handler R> Supplier | |
| public static < return type of after T, R> Supplier | Returns: a function composed of supplier and handlerthe supplier supplier, BiFunction<T, Throwable, R> the function applied after supplier handler)Returns a composed Supplier that first applies the Supplier and then applies BiFunction |
| public static < return type of after T, R> Supplier | Returns: a function composed of supplier and handlerthe supplier which should be recovered from a certain exception supplier, Function<T, R> the function applied after Supplier was successful resultHandler, Function<Throwable, R> the function applied after Supplier has failed exceptionHandler)Returns a composed function that first applies the Supplier and then applies either the resultHandler or exceptionHandler. |
| public static < return type of after T> Supplier | Returns: a function composed of supplier and exceptionHandlerthe supplier supplier, Predicate<T> the result predicate resultPredicate, UnaryOperator<T> the result handler resultHandler)Returns a composed Supplier that first executes the Supplier and optionally recovers from a specific result. |
| public static < return type of after T> Supplier | |
| public static < return type of after T> Supplier | Returns: a function composed of supplier and exceptionHandlerthe supplier which should be recovered from a certain exception supplier, List<Class<? extends Throwable>> the specific exception types that should be recovered exceptionTypes, Function<Throwable, T> the exception handler exceptionHandler)Returns a composed function that first executes the Supplier and optionally recovers from an exception. |
| public static <X extends Throwable, return type of after T> Supplier | Returns: a function composed of supplier and exceptionHandlerthe supplier which should be recovered from a certain exception supplier, Class<X> the specific exception type that should be recovered exceptionType, Function<Throwable, T> the exception handler exceptionHandler)Returns a composed function that first executes the Supplier and optionally recovers from an exception. |
| SupplierUtils | back to summary |
|---|---|
| private SupplierUtils() | |
| andThen | back to summary |
|---|---|
| public static <T, R> Supplier Returns a composed Supplier that first applies the Supplier and then applies the resultHandler. | |
| andThen | back to summary |
|---|---|
| public static <T, R> Supplier Returns a composed Supplier that first applies the Supplier and then applies BiFunction
| |
| andThen | back to summary |
|---|---|
| public static <T, R> Supplier Returns a composed function that first applies the Supplier and then applies either the resultHandler or exceptionHandler.
| |
| recover | back to summary |
|---|---|
| public static <T> Supplier Returns a composed Supplier that first executes the Supplier and optionally recovers from a specific result.
| |
| recover | back to summary |
|---|---|
| public static <T> Supplier Returns a composed function that first executes the Supplier and optionally recovers from an exception. | |
| recover | back to summary |
|---|---|
| public static <T> Supplier Returns a composed function that first executes the Supplier and optionally recovers from an exception.
| |
| recover | back to summary |
|---|---|
| public static <X extends Throwable, T> Supplier Returns a composed function that first executes the Supplier and optionally recovers from an exception.
| |