@Override protected void process() { FlowProcessor<Long, ?> child = this.child; for (long t : array) { if (stop) break; child.process(t); } } };
@Override protected void start() { if (!started) { started = true; super.start(); } }
public FlowToMap<K, List<T>, B> toMap() { return toMap(Flow.<K, T>flowGroupListMapper()); }
@Override public FlowProcessOnEnd<?, ArrayList<Integer>> map(FlowGroup<Boolean, Integer> group) { return group.toList(); } })
public FlowGrouping<K, T, B, B> each(final ConsumerWithInt<? super B> consumer) { return then(new FlowGrouping<K, T, B, B>(groups) { int index = 0; @Override public void process(B b) { consumer.consume(index++, b); FlowProcessor<B, ?> child = this.child; if (child != null) child.process(b); } }); }
@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 protected void process() { FlowProcessor<Short, ?> child = this.child; for (short t : array) { if (stop) break; child.process(t); } } };
@Override public void process(A a) { processed = true; FlowProcessor<A, ?> child = this.child; if (child != null) child.process(a); }
@Override public void process(B b) { if (counter < number) { counter++; child.process(b); } } });
@Override protected void process() { FlowProcessor<T, ?> child = this.child; for (T t : iterable) { if (stop) break; child.process(t); } } };
@Override protected void process() { FlowProcessor<Float, ?> child = this.child; for (float t : array) { if (stop) break; child.process(t); } } };
@Override protected void process() { FlowProcessor<Byte, ?> child = this.child; for (byte t : array) { if (stop) break; child.process(t); } } };
@Override protected void process() { FlowProcessor<Character, ?> child = this.child; for (char t : array) { if (stop) break; child.process(t); } } };