public class HasCountPipe<S> extends AbstractPipe<S,Boolean> implements TransformPipe<S,Boolean>
TransformPipe.OrdercurrentEnd, pathEnabled, startsNO_PATH_MESSAGE| Constructor and Description |
|---|
HasCountPipe(long min,
long max)
The pipe must emit at least min and not more than max elements.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
processNextStart() |
void |
reset()
A pipe may maintain state.
|
enablePath, getCurrentPath, getPathToHere, hasNext, iterator, next, remove, setStarts, setStarts, setStarts, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitenablePath, getCurrentPath, setStarts, setStartspublic HasCountPipe(long min,
long max)
min - minimum number of elements. Use -1 for no minimum.max - maximum number of elements. Use -1 for no maximum.public Boolean processNextStart()
processNextStart in class AbstractPipe<S,Boolean>public void reset()
PipeCopyright © 2010-2014. All Rights Reserved.