Uses of Interface
com.github.nullterminated.trylambda.CheckedSupplier
-
-
Uses of CheckedSupplier in com.github.nullterminated.trylambda
Methods in com.github.nullterminated.trylambda that return CheckedSupplier Modifier and Type Method Description static <T extends java.lang.AutoCloseable,R>
CheckedSupplier<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>
CheckedSupplier<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 aWrappedException.Methods in com.github.nullterminated.trylambda with parameters of type CheckedSupplier Modifier and Type Method Description static <R> Either<java.lang.Exception,R>Try. either(CheckedSupplier<R> supplier)This method exists to allow usage ofeitherwith checked suppliers without casting or needing to declare the checked supplier explicitly.static <T extends java.lang.AutoCloseable,R>
CheckedSupplier<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>
CheckedSupplier<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 aWrappedException.Method parameters in com.github.nullterminated.trylambda with type arguments of type CheckedSupplier Modifier and Type Method Description static <T extends java.lang.AutoCloseable,R>
CheckedSupplier<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>
CheckedSupplier<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 aWrappedException.
-