| Modifier and Type | Method | Description |
|---|---|---|
static <T extends java.lang.AutoCloseable,R> |
Try.trys(CheckedSupplier<T> supplier,
java.util.function.Function<java.lang.Exception,CheckedSupplier<R>> errorHandler,
java.util.function.Function<T,CheckedSupplier<R>> function) |
A method to use auto closing try with resources with lambda parameters.
|
static <T extends java.lang.AutoCloseable,R> |
Try.trys(CheckedSupplier<T> supplier,
java.util.function.Function<T,CheckedSupplier<R>> function) |
Calls the three argument form of this method with an error handler which simply wraps any exception in a
WrappedException. |
| Modifier and Type | Method | Description |
|---|---|---|
static <R> Either<java.lang.Exception,R> |
Try.either(CheckedSupplier<R> supplier) |
This method exists to allow usage of
either with checked suppliers
without casting or needing to declare the checked supplier explicitly. |
static <T extends java.lang.AutoCloseable,R> |
Try.trys(CheckedSupplier<T> supplier,
java.util.function.Function<java.lang.Exception,CheckedSupplier<R>> errorHandler,
java.util.function.Function<T,CheckedSupplier<R>> function) |
A method to use auto closing try with resources with lambda parameters.
|
static <T extends java.lang.AutoCloseable,R> |
Try.trys(CheckedSupplier<T> supplier,
java.util.function.Function<T,CheckedSupplier<R>> function) |
Calls the three argument form of this method with an error handler which simply wraps any exception in a
WrappedException. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T extends java.lang.AutoCloseable,R> |
Try.trys(CheckedSupplier<T> supplier,
java.util.function.Function<java.lang.Exception,CheckedSupplier<R>> errorHandler,
java.util.function.Function<T,CheckedSupplier<R>> function) |
A method to use auto closing try with resources with lambda parameters.
|
static <T extends java.lang.AutoCloseable,R> |
Try.trys(CheckedSupplier<T> supplier,
java.util.function.Function<T,CheckedSupplier<R>> function) |
Calls the three argument form of this method with an error handler which simply wraps any exception in a
WrappedException. |
Copyright © 2018. All rights reserved.