@SuppressWarnings("ConstantConditions") @Test public void createWithoutStage() { assertThrows(NullPointerException.class, () -> factory.create(null, null)); }
@SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Skip stage) { long skip = stage.getSkip(); return source -> (Multi<O>) source.transform().bySkippingFirstItems(skip); }
SkipStageFactory implements ProcessingStageFactory<Stage.Skip> { @SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Skip stage) { long skip = stage.getSkip(); return source -> (Multi<O>) source.transform().bySkippingFirstItems(skip); } }
SkipStageFactory implements ProcessingStageFactory<Stage.Skip> { @SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Skip stage) { long skip = stage.getSkip(); return source -> (Multi<O>) source.transform().bySkippingFirstItems(skip); }  }
SkipStageFactory implements ProcessingStageFactory<Stage.Skip> { @SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Skip stage) { long skip = stage.getSkip(); return source -> (Multi<O>) source.transform().bySkippingFirstItems(skip); }  @SuppressWarnings("unchecked") @Override ProcessingStage<I, O> create(Engine engine, Stage.Skip stage); }
SkipStageFactory implements ProcessingStageFactory<Stage.Skip> { @SuppressWarnings("unchecked") @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.Skip stage) { long skip = stage.getSkip(); return source -> (Multi<O>) source.transform().bySkippingFirstItems(skip); }  @SuppressWarnings("unchecked") @Override ProcessingStage<I, O> create(Engine engine, Stage.Skip stage);  }