Uses of Interface
com.github.nullterminated.trylambda.CheckedSupplier
-
Uses of CheckedSupplier in com.github.nullterminated.trylambda
Methods in com.github.nullterminated.trylambda that return CheckedSupplierModifier and TypeMethodDescriptionstatic <T extends AutoCloseable,R>
CheckedSupplier<R> Try.trys(CheckedSupplier<T> supplier, Function<Exception, CheckedSupplier<R>> errorHandler, Function<T, CheckedSupplier<R>> function) A method to use auto closing try with resources with lambda parameters.static <T extends AutoCloseable,R>
CheckedSupplier<R> Try.trys(CheckedSupplier<T> supplier, 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 CheckedSupplierModifier and TypeMethodDescriptionTry.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 AutoCloseable,R>
CheckedSupplier<R> Try.trys(CheckedSupplier<T> supplier, Function<Exception, CheckedSupplier<R>> errorHandler, Function<T, CheckedSupplier<R>> function) A method to use auto closing try with resources with lambda parameters.static <T extends AutoCloseable,R>
CheckedSupplier<R> Try.trys(CheckedSupplier<T> supplier, 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 CheckedSupplierModifier and TypeMethodDescriptionstatic <T extends AutoCloseable,R>
CheckedSupplier<R> Try.trys(CheckedSupplier<T> supplier, Function<Exception, CheckedSupplier<R>> errorHandler, Function<T, CheckedSupplier<R>> function) A method to use auto closing try with resources with lambda parameters.static <T extends AutoCloseable,R>
CheckedSupplier<R> Try.trys(CheckedSupplier<T> supplier, Function<T, CheckedSupplier<R>> function) Calls the three argument form of this method with an error handler which simply wraps any exception in aWrappedException.