public void enablePath(final boolean enable) { this.pathEnabled = enable; if (this.starts instanceof Pipe) ((Pipe) this.starts).enablePath(enable); }
/** * 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(); }
/** * Initialize this pipe to apply its conditions to the given pipe. * Each object in the source pipe is fed into the given pipe individually. * * @param pipe The pipe to determine if objects exist after input processed */ public HasNextPipe(final Pipe<S, ?> pipe) { this.pipe = pipe; this.pipe.setStarts(this.expando); }
private K getKey(final S start) { if (null == keyFunction) { return (K) start; } else { return keyFunction.compute(start); } }
public void enablePath(final boolean enable) { for (final Pipe pipe : this.getPipes()) { pipe.enablePath(enable); } super.enablePath(enable); }
/** * Get the next object emitted from the pipeline. * If no such object exists, then a NoSuchElementException is thrown. * * @return the next emitted object */ public E next() { return this.endPipe.next(); }
public void reset() { super.reset(); this.counter = 0; this.finished = false; } }
public E next() { if (this.available) { this.available = false; return (this.currentEnd = this.nextEnd); } else { return (this.currentEnd = this.processNextStart()); } }
public void reset() { if (this.starts instanceof Pipe) ((Pipe) this.starts).reset(); this.nextEnd = null; this.currentEnd = null; this.available = false; }
public void enablePath(boolean enablePath) { if (enablePath) this.objectComparator = null; else this.bundledComparator = null; super.enablePath(enablePath); }
public MemoizePipe(final Pipe<S, E> pipe, final Map<S, List<E>> map) { this.pipe = pipe; this.pipe.setStarts(this.expando); this.map = map; }
public void reset() { this.counter = 0l; super.reset(); } }
public void enablePath(final boolean enable) { this.pathEnabled = enable; if (this.starts instanceof Pipe) ((Pipe) this.starts).enablePath(enable); }
public boolean hasNext() { if (this.available) return true; else { try { this.nextEnd = this.processNextStart(); return (this.available = true); } catch (final NoSuchElementException e) { return (this.available = false); } } }
public void setStarts(final Iterator<S> starts) { this.pipe.setStarts(starts); this.starts = starts; }
public void reset() { this.itty = null; super.reset(); } }
public void reset() { this.counter = -1; super.reset(); }
public void reset() { super.reset(); this.sideEffect = null; }