@Test(expected = NullPointerException.class) public void createWithoutStage() { factory.create(null, null); }
@SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Distinct stage) { Objects.requireNonNull(stage); return source -> (Flowable<O>) source.distinct(); }
DistinctStageFactory implements ProcessingStageFactory<Stage.Distinct> { @SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Distinct stage) { Objects.requireNonNull(stage); return source -> (Flowable<O>) source.distinct(); } }
DistinctStageFactory implements ProcessingStageFactory<Stage.Distinct> { @SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Distinct stage) { Objects.requireNonNull(stage); return source -> (Flowable<O>) source.distinct(); }  }
DistinctStageFactory implements ProcessingStageFactory<Stage.Distinct> { @SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Distinct stage) { Objects.requireNonNull(stage); return source -> (Flowable<O>) source.distinct(); }  @SuppressWarnings("unchecked") @Override ProcessingStage<I, O> create(Engine engine, Stage.Distinct stage); }
DistinctStageFactory implements ProcessingStageFactory<Stage.Distinct> { @SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Distinct stage) { Objects.requireNonNull(stage); return source -> (Flowable<O>) source.distinct(); }  @SuppressWarnings("unchecked") @Override ProcessingStage<I, O> create(Engine engine, Stage.Distinct stage);  }