/** * Determines if there is another object that can be emitted from the pipeline. * * @return true if an object can be next()'d out of the pipeline */ public boolean hasNext() { return this.endPipe.hasNext(); }
@Override public boolean hasNext() { return pipe.hasNext(); }
public Boolean processNextStart() { final S s = this.starts.next(); this.pipe.reset(); this.expando.add(s); return this.pipe.hasNext(); }
public S processNextStart() { while (true) { final S s = this.starts.next(); this.pipe.reset(); this.expando.add(s); if (this.pipe.hasNext()) { return s; } } }
public S processNextStart() { while (true) { final Pipe pipe = this.pipes.get(this.current); if (pipe.hasNext()) { return (S) pipe.next(); } else { this.current = (this.current + 1) % this.total; if (this.current == 0) { throw FastNoSuchElementException.instance(); } } } }
public S processNextStart() { while (true) { final S s = this.starts.next(); this.expando.add(s); if (this.pipe.hasNext()) { try { while (true) { this.pipe.next(); } } catch (final NoSuchElementException e) { } return s; } } }
public S processNextStart() { int counter = 0; while (true) { counter++; final Pipe currentPipe = this.pipes.get(this.current); if (currentPipe.hasNext()) { final S s = (S) currentPipe.next(); this.current = (this.current + 1) % this.total; return s; } else if (counter == this.total) { throw FastNoSuchElementException.instance(); } else { this.current = (this.current + 1) % this.total; } } }
public S processNextStart() { while (true) { if (!this.pipe.hasNext()) this.pipe = new PipesPipeline(this.starts.next().entrySet()).order(this.compareFunction).transform(new PipeFunction<Map.Entry, Object>() { public Object compute(final Map.Entry entry) { return entry.getKey(); } }); else return (S) this.pipe.next(); } }