Actions.java 文件源码

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

项目:RxActions 作者:
/**
 * Combines provided actions into a single action stream
 *
 * @param a Actions
 * @return Single action stream combined from provided actions
 */
@SafeVarargs
@CheckResult
@NonNull
public static <T1, T2, T3> Action3<? super T1, ? super T2, ? super T3> combine(@NonNull final Action3<? super T1, ? super T2, ? super T3>... a) {
    return new Action3<T1, T2, T3>() {
        @Override
        public void call(T1 t1, T2 t2, T3 t3) {
            //noinspection ForLoopReplaceableByForEach
            for (int i = 0, count = a.length; i < count; i++) {
                a[i].call(t1, t2, t3);
            }
        }
    };
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号