Actions.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:RxActions 作者:
/**
 * Combines provided actions into a single action stream
 *
 * @param a1 Action
 * @param a2 Action
 * @param a3 Action
 * @param a4 Action
 * @param a5 Action
 * @param a6 Action
 * @param a7 Action
 * @return Single action stream combined from provided actions
 */
@CheckResult
@NonNull
public static <T1, T2, T3> Action3<? super T1, ? super T2, ? super T3> combine(@NonNull final Action3<? super T1, ? super T2, ? super T3> a1, @NonNull final Action3<? super T1, ? super T2, ? super T3> a2, @NonNull final Action3<? super T1, ? super T2, ? super T3> a3, @NonNull final Action3<? super T1, ? super T2, ? super T3> a4, @NonNull final Action3<? super T1, ? super T2, ? super T3> a5, @NonNull final Action3<? super T1, ? super T2, ? super T3> a6, @NonNull final Action3<? super T1, ? super T2, ? super T3> a7) {
    return new Action3<T1, T2, T3>() {
        @Override
        public void call(T1 t1, T2 t2, T3 t3) {
            a1.call(t1, t2, t3);
            a2.call(t1, t2, t3);
            a3.call(t1, t2, t3);
            a4.call(t1, t2, t3);
            a5.call(t1, t2, t3);
            a6.call(t1, t2, t3);
            a7.call(t1, t2, t3);
        }
    };
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号