E - type of enumerated elements.final class PipeSource<E> extends IteratorEnumerator<E>
IteratorEnumerator that acts as a source of enumerated
elements for AbstractPipeProcessor instances within
PipeEnumerator.pipeline.| Modifier | Constructor and Description |
|---|---|
protected |
PipeSource(Iterator<E> source)
Constructs a new
PipeSource instances based on the given
source. |
| Modifier and Type | Method and Description |
|---|---|
AbstractPipeProcessor<?,?> |
getFirstProcessor()
Gets the first
AbstractPipeProcessor instance that processes the
elements of this PipeSource. |
(package private) static <T> PipeSource<T> |
of(Iterator<T> source)
Creates a new instance of
PipeSource with the given
source. |
void |
setFirstProcessorIfNone(AbstractPipeProcessor<?,?> processor)
Sets
firstProcessor to the given AbstractPipeProcessor
if there is none. |
cleanup, internalHasNext, internalNextenumerating, hasNext, nextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallMatch, anyMatch, append, as, asEnumerable, asEnumeration, asFiltered, asOptional, asShareable, asSpliterator, asStream, asSupplier, asTolerant, asTolerant, choiceOf, choiceOf, collect, concat, concat, concat, concat, concat, concat, concatOn, contains, count, distinct, elementAt, elementsEqual, empty, filter, first, flatMap, forEach, iterate, last, limit, limitWhile, map, map, max, min, noneMatch, of, of, of, of, of, of, of, ofLateBinding, ofLazyEnumeration, ofLazyIterable, ofLazyIterator, ofLazySpliterator, ofLazyStream, on, peek, prepend, prepend, prepend, prepend, prepend, prepend, prependOn, range, rangeClosed, rangeInt, rangeIntClosed, rangeLong, rangeLongClosed, reduce, reduce, repeat, repeatAll, repeatAll, repeatEach, reverse, single, skip, skipWhile, sorted, sorted, take, takeWhile, toArray, toList, toMap, toSet, union, union, union, union, union, union, unionOn, zipAll, zipAny, zipBoth, zipLeft, zipRightforEachRemaining, removeprotected PipeSource(Iterator<E> source)
PipeSource instances based on the given
source.source - Iterator supplying enumerated elements.PipeSourcepublic AbstractPipeProcessor<?,?> getFirstProcessor()
AbstractPipeProcessor instance that processes the
elements of this PipeSource.AbstractPipeProcessor instance.public void setFirstProcessorIfNone(AbstractPipeProcessor<?,?> processor)
firstProcessor to the given AbstractPipeProcessor
if there is none.processor - value for firstProcessor if none.static <T> PipeSource<T> of(Iterator<T> source)
PipeSource with the given
source.T - type of enumerated elements.source - Iterator instance acting as a source of elements.PipeSource instance.Copyright © 2016. All rights reserved.