public interface Pipe<S,E> extends Iterator<E>, Iterable<E>
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_PATH_MESSAGE |
| Modifier and Type | Method and Description |
|---|---|
void |
enablePath(boolean enable)
Calculating paths can be an expensive operation for some pipes.
|
List |
getCurrentPath()
Returns the transformation path to arrive at the current object of the pipe.
|
void |
reset()
A pipe may maintain state.
|
void |
setStarts(Iterable<S> starts)
Set an iterable of S objects to the head (start) of the pipe.
|
void |
setStarts(Iterator<S> starts)
Set an iterator of S objects to the head (start) of the pipe.
|
static final String NO_PATH_MESSAGE
void setStarts(Iterator<S> starts)
starts - the iterator of incoming objectsvoid setStarts(Iterable<S> starts)
starts - the iterable of incoming objectsList getCurrentPath()
void enablePath(boolean enable)
enable - enable path calculationsvoid reset()
Copyright © 2010-2014. All Rights Reserved.