Java 类io.reactivex.internal.fuseable.ConditionalSubscriber 实例源码

项目:RxJava2Debug    文件:ParallelFlowableOnAssembly.java   
@Override
public void subscribe(Subscriber<? super T>[] s) {
    if (validate(s)) {
        int n = s.length;
        @SuppressWarnings("unchecked")
        Subscriber<? super T>[] parents = new Subscriber[n];
        for (int i = 0; i < n; i++) {
            Subscriber<? super T> z = s[i];
            if (z instanceof ConditionalSubscriber) {
                parents[i] = new OnAssemblyConditionalSubscriber<T>((ConditionalSubscriber<? super T>)z, assembled);
            } else {
                parents[i] = new OnAssemblySubscriber<T>(z, assembled);
            }
        }

        source.subscribe(parents);
    }
}
项目:RxJava2Extensions    文件:ParallelFlowableOnAssembly.java   
@Override
public void subscribe(Subscriber<? super T>[] s) {
    if (validate(s)) {
        int n = s.length;
        @SuppressWarnings("unchecked")
        Subscriber<? super T>[] parents = new Subscriber[n];
        for (int i = 0; i < n; i++) {
            Subscriber<? super T> z = s[i];
            if (z instanceof ConditionalSubscriber) {
                parents[i] = new OnAssemblyConditionalSubscriber<T>((ConditionalSubscriber<? super T>)z, assembled);
            } else {
                parents[i] = new OnAssemblySubscriber<T>(z, assembled);
            }
        }

        source.subscribe(parents);
    }
}
项目:RxJava2Debug    文件:FlowableOnAssemblyCallable.java   
@Override
protected void subscribeActual(Subscriber<? super T> s) {
    if (s instanceof ConditionalSubscriber) {
        source.subscribe(new OnAssemblyConditionalSubscriber<T>((ConditionalSubscriber<? super T>)s, assembled));
    } else {
        source.subscribe(new OnAssemblySubscriber<T>(s, assembled));
    }
}
项目:RxJava2Debug    文件:FlowableOnAssemblyConnectable.java   
@Override
protected void subscribeActual(Subscriber<? super T> s) {
    if (s instanceof ConditionalSubscriber) {
        source.subscribe(new OnAssemblyConditionalSubscriber<T>((ConditionalSubscriber<? super T>)s, assembled));
    } else {
        source.subscribe(new OnAssemblySubscriber<T>(s, assembled));
    }
}
项目:RxJava2Jdk8Interop    文件:FlowableMapOptional.java   
@Override
protected void subscribeActual(Subscriber<? super R> s) {
    if (s instanceof ConditionalSubscriber) {
        source.subscribe(new MapOptionalConditionalSubscriber<>((ConditionalSubscriber<? super R>)s, mapper));
    } else {
        source.subscribe(new MapOptionalSubscriber<>(s, mapper));
    }
}
项目:RxJava2Extensions    文件:FlowableOnAssemblyCallable.java   
@Override
protected void subscribeActual(Subscriber<? super T> s) {
    if (s instanceof ConditionalSubscriber) {
        source.subscribe(new OnAssemblyConditionalSubscriber<T>((ConditionalSubscriber<? super T>)s, assembled));
    } else {
        source.subscribe(new OnAssemblySubscriber<T>(s, assembled));
    }
}
项目:RxJava2Extensions    文件:FlowableOnAssemblyConnectable.java   
@Override
protected void subscribeActual(Subscriber<? super T> s) {
    if (s instanceof ConditionalSubscriber) {
        source.subscribe(new OnAssemblyConditionalSubscriber<T>((ConditionalSubscriber<? super T>)s, assembled));
    } else {
        source.subscribe(new OnAssemblySubscriber<T>(s, assembled));
    }
}
项目:RxJava2Extensions    文件:FlowableRepeatCallable.java   
@Override
protected void subscribeActual(Subscriber<? super T> s) {
    if (s instanceof ConditionalSubscriber) {
        s.onSubscribe(new RepeatCallableConditionalSubscription<T>((ConditionalSubscriber<? super T>)s, callable));
    } else {
        s.onSubscribe(new RepeatCallableSubscription<T>(s, callable));
    }
}
项目:RxJava2Extensions    文件:FlowableRepeatScalar.java   
@Override
protected void subscribeActual(Subscriber<? super T> s) {
    if (s instanceof ConditionalSubscriber) {
        s.onSubscribe(new RepeatScalarConditionalSubscription<T>((ConditionalSubscriber<? super T>)s, value));
    } else {
        s.onSubscribe(new RepeatScalarSubscription<T>(s, value));
    }
}
项目:RxJava2Extensions    文件:FlowableMapFilter.java   
@Override
protected void subscribeActual(Subscriber<? super R> s) {
    if (s instanceof ConditionalSubscriber) {
        source.subscribe(new MapFilterConditionalSubscriber<T, R>((ConditionalSubscriber<? super R>)s, consumer));
    } else {
        source.subscribe(new MapFilterSubscriber<T, R>(s, consumer));
    }
}
项目:RxJava2Jdk8Interop    文件:FlowableMapOptional.java   
public MapOptionalConditionalSubscriber(ConditionalSubscriber<? super R> actual, Function<? super T, Optional<R>> mapper) {
    super(actual);
    this.mapper = mapper;
}
项目:RxJava2Extensions    文件:FlowableRepeatCallable.java   
RepeatCallableConditionalSubscription(ConditionalSubscriber<? super T> actual, Callable<T> callable) {
    this.actual = actual;
    this.callable = callable;
}
项目:RxJava2Extensions    文件:FlowableRepeatScalar.java   
RepeatScalarConditionalSubscription(ConditionalSubscriber<? super T> actual, T value) {
    this.actual = actual;
    this.value = value;
}
项目:RxJava2Extensions    文件:FlowableMapFilter.java   
MapFilterConditionalSubscriber(ConditionalSubscriber<? super R> actual,
        BiConsumer<? super T, ? super BasicEmitter<R>> consumer) {
    super(actual);
    this.consumer = consumer;
}