/** * Converts an {@link Action5} to a function that calls the action and returns {@code null}. * * @param action the {@link Action5} to convert * @return a {@link Func5} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5> Func5<T1, T2, T3, T4, T5, Void> toFunc( final Action5<T1, T2, T3, T4, T5> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action7} to a function that calls the action and returns {@code null}. * * @param action the {@link Action7} to convert * @return a {@link Func7} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5, T6, T7> Func7<T1, T2, T3, T4, T5, T6, T7, Void> toFunc( final Action7<T1, T2, T3, T4, T5, T6, T7> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action1} to a function that calls the action and returns {@code null}. * * @param action the {@link Action1} to convert * @return a {@link Func1} that calls {@code action} and returns {@code null} */ public static <T1> Func1<T1, Void> toFunc(final Action1<T1> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action1} to a function that calls the action and returns {@code null}. * * @param action the {@link Action1} to convert * @return a {@link Func1} that calls {@code action} and returns {@code null} */ public static <T1> Func1<T1, Void> toFunc(final Action1<T1> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action4} to a function that calls the action and returns {@code null}. * * @param action the {@link Action4} to convert * @return a {@link Func4} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4> Func4<T1, T2, T3, T4, Void> toFunc(final Action4<T1, T2, T3, T4> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action3} to a function that calls the action and returns {@code null}. * * @param action * the {@link Action3} to convert * @return a {@link Func3} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3> Func3<T1, T2, T3, Void> toFunc(final Action3<T1, T2, T3> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action7} to a function that calls the action and returns {@code null}. * * @param action * the {@link Action7} to convert * @return a {@link Func7} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5, T6, T7> Func7<T1, T2, T3, T4, T5, T6, T7, Void> toFunc( final Action7<T1, T2, T3, T4, T5, T6, T7> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action5} to a function that calls the action and returns {@code null}. * * @param action the {@link Action5} to convert * @return a {@link Func5} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5> Func5<T1, T2, T3, T4, T5, Void> toFunc( final Action5<T1, T2, T3, T4, T5> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action8} to a function that calls the action and returns {@code null}. * * @param action the {@link Action8} to convert * @return a {@link Func8} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5, T6, T7, T8> Func8<T1, T2, T3, T4, T5, T6, T7, T8, Void> toFunc( final Action8<T1, T2, T3, T4, T5, T6, T7, T8> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action2} to a function that calls the action and returns {@code null}. * * @param action * the {@link Action2} to convert * @return a {@link Func2} that calls {@code action} and returns {@code null} */ public static <T1, T2> Func2<T1, T2, Void> toFunc(final Action2<T1, T2> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action5} to a function that calls the action and returns {@code null}. * * @param action * the {@link Action5} to convert * @return a {@link Func5} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5> Func5<T1, T2, T3, T4, T5, Void> toFunc( final Action5<T1, T2, T3, T4, T5> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action6} to a function that calls the action and returns {@code null}. * * @param action the {@link Action6} to convert * @return a {@link Func6} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5, T6> Func6<T1, T2, T3, T4, T5, T6, Void> toFunc( final Action6<T1, T2, T3, T4, T5, T6> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action3} to a function that calls the action and returns {@code null}. * * @param action the {@link Action3} to convert * @return a {@link Func3} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3> Func3<T1, T2, T3, Void> toFunc(final Action3<T1, T2, T3> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action9} to a function that calls the action and returns {@code null}. * * @param action the {@link Action9} to convert * @return a {@link Func9} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5, T6, T7, T8, T9> Func9<T1, T2, T3, T4, T5, T6, T7, T8, T9, Void> toFunc( final Action9<T1, T2, T3, T4, T5, T6, T7, T8, T9> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link ActionN} to a function that calls the action and returns {@code null}. * * @param action the {@link ActionN} to convert * @return a {@link FuncN} that calls {@code action} and returns {@code null} */ public static FuncN<Void> toFunc( final ActionN action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action6} to a function that calls the action and returns {@code null}. * * @param action * the {@link Action6} to convert * @return a {@link Func6} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5, T6> Func6<T1, T2, T3, T4, T5, T6, Void> toFunc( final Action6<T1, T2, T3, T4, T5, T6> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action8} to a function that calls the action and returns {@code null}. * * @param action * the {@link Action8} to convert * @return a {@link Func8} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5, T6, T7, T8> Func8<T1, T2, T3, T4, T5, T6, T7, T8, Void> toFunc( final Action8<T1, T2, T3, T4, T5, T6, T7, T8> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action9} to a function that calls the action and returns {@code null}. * * @param action * the {@link Action9} to convert * @return a {@link Func9} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4, T5, T6, T7, T8, T9> Func9<T1, T2, T3, T4, T5, T6, T7, T8, T9, Void> toFunc( final Action9<T1, T2, T3, T4, T5, T6, T7, T8, T9> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action3} to a function that calls the action and returns {@code null}. * * @param action the {@link Action3} to convert * @return a {@link Func3} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3> Func3<T1, T2, T3, Void> toFunc(final Action3<T1, T2, T3> action) { return toFunc(action, (Void) null); }
/** * Converts an {@link Action4} to a function that calls the action and returns {@code null}. * * @param action the {@link Action4} to convert * @return a {@link Func4} that calls {@code action} and returns {@code null} */ public static <T1, T2, T3, T4> Func4<T1, T2, T3, T4, Void> toFunc(final Action4<T1, T2, T3, T4> action) { return toFunc(action, (Void) null); }