Uses of Interface
org.springframework.util.function.ThrowingSupplier
Packages that use ThrowingSupplier
Package
Description
Useful generic
java.util.function helper classes.-
Uses of ThrowingSupplier in org.springframework.util.function
Methods in org.springframework.util.function that return ThrowingSupplierModifier and TypeMethodDescriptionstatic <T> ThrowingSupplier<T>ThrowingSupplier.of(ThrowingSupplier<T> supplier) Lambda friendly convenience method that can be used to create aThrowingSupplierwhere theget()method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T> ThrowingSupplier<T>ThrowingSupplier.of(ThrowingSupplier<T> supplier, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to createThrowingSupplierwhere theget()method wraps any thrown checked exceptions using the givenexceptionWrapper.default ThrowingSupplier<T>ThrowingSupplier.throwing(BiFunction<String, Exception, RuntimeException> exceptionWrapper) Return a newThrowingSupplierwhere theget()method wraps any thrown checked exceptions using the givenexceptionWrapper.Methods in org.springframework.util.function with parameters of type ThrowingSupplierModifier and TypeMethodDescriptionstatic <T> ThrowingSupplier<T>ThrowingSupplier.of(ThrowingSupplier<T> supplier) Lambda friendly convenience method that can be used to create aThrowingSupplierwhere theget()method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T> ThrowingSupplier<T>ThrowingSupplier.of(ThrowingSupplier<T> supplier, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to createThrowingSupplierwhere theget()method wraps any thrown checked exceptions using the givenexceptionWrapper.