public class StorePipe<S> extends AbstractPipe<S,S> implements SideEffectPipe.LazySideEffectPipe<S,Collection>
SideEffectPipe.GreedySideEffectPipe<S,T>, SideEffectPipe.LazySideEffectPipe<S,T>currentEnd, pathEnabled, startsNO_PATH_MESSAGE| Constructor and Description |
|---|
StorePipe(Collection storage) |
StorePipe(Collection storage,
PipeFunction<S,?> preStoreFunction)
The provided PipeFunction will process the object prior to inserting it into the storage collection.
|
| Modifier and Type | Method and Description |
|---|---|
Collection |
getSideEffect() |
protected S |
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 StorePipe(Collection storage)
public StorePipe(Collection storage, PipeFunction<S,?> preStoreFunction)
storage - the storage collectionpreStoreFunction - a function to process an object with prior to insertion into the collectionprotected S processNextStart()
processNextStart in class AbstractPipe<S,S>public Collection getSideEffect()
getSideEffect in interface SideEffectPipe<S,Collection>public void reset()
PipeCopyright © 2010-2014. All Rights Reserved.