@Override protected void process() { FlowProcessor<Long, ?> child = this.child; for (long t : array) { if (stop) break; child.process(t); } } };
@Override protected void process() { FlowProcessor<Short, ?> child = this.child; for (short t : array) { if (stop) break; child.process(t); } } };
@Override protected void process() { FlowProcessor<Short, ?> child = this.child; for (short t : array) { if (stop) break; child.process(t); } } };
@Override public void process(B b) { if (counter >= number) child.process(b); else counter++; } });
@Override protected void process() { FlowProcessor<T, ?> child = this.child; for (T t : array) { if (stop) break; child.process(t); } } };
@Override protected void process() { FlowProcessor<Boolean, ?> child = this.child; for (boolean t : array) { if (stop) break; child.process(t); } } };
@Override public void process(T t) { if (counter >= number) child.process(t); else counter++; } }
@Override public void process(T t) { if (stopped) return; child.process(t); }
@Override protected void process() { FlowProcessor<Double, ?> child = this.child; for (double t : array) { if (stop) break; child.process(t); } } };
protected void stop(B b) { FlowProcessor<B, ?> child = this.child; if (child != null) { child.process(b); } stop(); } }
@Override protected void process() { child.process(supplier.supply()); } };
@Override public void process(B b) { consumer.consume(b); FlowProcessor<B, ?> child = this.child; if (child != null) child.process(b); } });
@Override public void process(T t) { if (filter.allow(t)) child.process(t); } }
@Override public void process(B b) { consumer.consume(b); FlowProcessor<B, ?> child = this.child; if (child != null) child.process(b); } });
@Override public void process(T t) { consumer.consume(t); FlowProcessor<T, ?> child = this.child; if (child != null) child.process(t); } }
@Override public void process(T t) { consumer.consume(index++, t); FlowProcessor<T, ?> child = this.child; if (child != null) child.process(t); } }
@Override protected void process() { FlowProcessor<T, ?> child = this.child; for (Supplier<T> supplier : suppliers) { if (stop) break; child.process(supplier.supply()); } } };
void process(B b) { if (b == null) { if (!stop) { stop = true; onEnd(); } else { throw new IllegalStateException("Flow has already ended"); } } else { child.process(b); } }
@Override public void process(B b) { if (filter.allow(b)) { groups.put(b.getKey(), b); child.process(b); } } });
@Override protected void onEnd() { FlowProcessor<B, ?> child = this.child; if (child != null) { B result = result(); if (result != null) child.process(result); onEnd(child); } }