@Test(expected = NullPointerException.class) public void createWithoutPredicate() { factory.create(null, () -> null); }
@Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.DropWhile stage) { Predicate<I> predicate = Casts.cast(stage.getPredicate()); return Casts.cast(new TakeWhile<>(predicate)); }
DropWhileStageFactory implements ProcessingStageFactory<Stage.DropWhile> { @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.DropWhile stage) { Predicate<I> predicate = Casts.cast(stage.getPredicate()); return Casts.cast(new TakeWhile<>(predicate)); } }
DropWhileStageFactory implements ProcessingStageFactory<Stage.DropWhile> { @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.DropWhile stage) { Predicate<I> predicate = Casts.cast(stage.getPredicate()); return Casts.cast(new TakeWhile<>(predicate)); }  }
DropWhileStageFactory implements ProcessingStageFactory<Stage.DropWhile> { @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.DropWhile stage) { Predicate<I> predicate = Casts.cast(stage.getPredicate()); return Casts.cast(new TakeWhile<>(predicate)); }  @Override ProcessingStage<I, O> create(Engine engine, Stage.DropWhile stage); }
DropWhileStageFactory implements ProcessingStageFactory<Stage.DropWhile> { @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.DropWhile stage) { Predicate<I> predicate = Casts.cast(stage.getPredicate()); return Casts.cast(new TakeWhile<>(predicate)); }  @Override ProcessingStage<I, O> create(Engine engine, Stage.DropWhile stage);  }