/** * Apply this function and returns the given default value in case of exception. * * @param defaultValue Exceptional default value. * @return A new function. */ default Supplier<V> orElse(V defaultValue) { return orElse(() -> defaultValue); }
/** * Apply this function and returns the given default value in case of exception. * * @param defaultValue Exceptional default value. * @return A new function. */ default Supplier<V> orElse(V defaultValue) { return orElse(() -> defaultValue); }