接口的使用
cn.taketoday.util.function.ThrowingFunction
使用ThrowingFunction的程序包
-
cn.taketoday.util.function中ThrowingFunction的使用
修饰符和类型方法说明static <T,R> ThrowingFunction<T, R> ThrowingFunction.of(ThrowingFunction<T, R> function) Lambda friendly convenience method that can be used to create aThrowingFunctionwhere theapply(Object)method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T,R> ThrowingFunction<T, R> ThrowingFunction.of(ThrowingFunction<T, R> function, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to create aThrowingFunctionwhere theapply(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.default ThrowingFunction<T,R> ThrowingFunction.throwing(BiFunction<String, Exception, RuntimeException> exceptionWrapper) Return a newThrowingFunctionwhere theapply(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.修饰符和类型方法说明static <T,R> ThrowingFunction<T, R> ThrowingFunction.of(ThrowingFunction<T, R> function) Lambda friendly convenience method that can be used to create aThrowingFunctionwhere theapply(Object)method wraps any checked exception thrown by the supplied lambda expression or method reference.static <T,R> ThrowingFunction<T, R> ThrowingFunction.of(ThrowingFunction<T, R> function, BiFunction<String, Exception, RuntimeException> exceptionWrapper) Lambda friendly convenience method that can be used to create aThrowingFunctionwhere theapply(Object)method wraps any thrown checked exceptions using the givenexceptionWrapper.