public class AggregatePipe<S> extends AbstractPipe<S,S> implements SideEffectPipe.GreedySideEffectPipe<S,Collection>
SideEffectPipe.GreedySideEffectPipe<S,T>, SideEffectPipe.LazySideEffectPipe<S,T>currentEnd, pathEnabled, startsNO_PATH_MESSAGE| Constructor and Description |
|---|
AggregatePipe(Collection aggregate) |
AggregatePipe(Collection aggregate,
PipeFunction<S,?> preAggregateFunction)
The provided PipeFunction will process the object prior to inserting it into the aggregate collection.
|
| Modifier and Type | Method and Description |
|---|---|
List |
getCurrentPath()
Returns the transformation path to arrive at the current object of the pipe.
|
Collection |
getSideEffect() |
protected S |
processNextStart() |
void |
reset()
A pipe may maintain state.
|
enablePath, getPathToHere, hasNext, iterator, next, remove, setStarts, setStarts, setStarts, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitenablePath, setStarts, setStartspublic AggregatePipe(Collection aggregate)
public AggregatePipe(Collection aggregate, PipeFunction<S,?> preAggregateFunction)
aggregate - the aggregate collectionpreAggregateFunction - a function to process an object with prior to insertion into the collectionpublic List getCurrentPath()
PipegetCurrentPath in interface Pipe<S,S>getCurrentPath in class AbstractPipe<S,S>protected 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.