public class MemoizePipe<S,E> extends AbstractMetaPipe<S,E> implements MetaPipe, TransformPipe<S,E>
TransformPipe.Order| Modifier and Type | Field and Description |
|---|---|
protected Iterator<E> |
currentIterator |
protected SingleExpandableIterator<S> |
expando |
protected Map<S,List<E>> |
map |
protected Pipe<S,E> |
pipe |
currentEnd, pathEnabled, startsNO_PATH_MESSAGE| Constructor and Description |
|---|
MemoizePipe(Pipe<S,E> pipe) |
MemoizePipe(Pipe<S,E> pipe,
Map<S,List<E>> map) |
| Modifier and Type | Method and Description |
|---|---|
List<Pipe> |
getPipes() |
E |
processNextStart() |
void |
reset()
A pipe may maintain state.
|
String |
toString() |
enablePathgetCurrentPath, getPathToHere, hasNext, iterator, next, remove, setStarts, setStarts, setStartsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitenablePath, getCurrentPath, setStarts, setStartsprotected final SingleExpandableIterator<S> expando
public E processNextStart()
processNextStart in class AbstractPipe<S,E>public void reset()
Pipepublic String toString()
toString in class AbstractPipe<S,E>Copyright © 2010-2014. All Rights Reserved.