@SuppressWarnings("unchecked") @Override public ParallelFlowable apply(ParallelFlowable c) throws Exception { return oldPF.apply(new ParallelFlowableValidator(c, handler)); } });
@Override public void subscribe(Subscriber<? super T>[] s) { validate(s); int n = source.parallelism(); @SuppressWarnings("unchecked") Subscriber<? super T>[] actual = new Subscriber[n]; for (int i = 0; i < n; i++) { actual[i] = new FlowableValidator.ValidatorConsumer<T>(s[i], onViolation); } source.subscribe(actual); }
@Override public void subscribe(Subscriber<? super T>[] s) { validate(s); int n = source.parallelism(); @SuppressWarnings("unchecked") Subscriber<? super T>[] actual = new Subscriber[n]; for (int i = 0; i < n; i++) { actual[i] = new FlowableValidator.ValidatorConsumer<T>(s[i], onViolation); } source.subscribe(actual); }
@SuppressWarnings("unchecked") @Override public ParallelFlowable apply(ParallelFlowable c) throws Exception { return oldPF.apply(new ParallelFlowableValidator(c, handler)); } });