/** * Returns an unchecked function that will <em>sneaky throw</em> if an exceptions occurs when applying the function. * * @return a new Function5 that throws a {@code Throwable}. */ default Function5<T1, T2, T3, T4, T5, R> unchecked() { return (t1, t2, t3, t4, t5) -> { try { return apply(t1, t2, t3, t4, t5); } catch(Throwable t) { return sneakyThrow(t); } }; }
/** * Returns an unchecked function that will <em>sneaky throw</em> if an exceptions occurs when applying the function. * * @return a new Function5 that throws a {@code Throwable}. */ default Function5<T1, T2, T3, T4, T5, R> unchecked() { return (t1, t2, t3, t4, t5) -> { try { return apply(t1, t2, t3, t4, t5); } catch(Throwable t) { return sneakyThrow(t); } }; }