public class LoopPipe<S> extends AbstractMetaPipe<S,S> implements MetaPipe
| Modifier and Type | Class and Description |
|---|---|
static class |
LoopPipe.LoopBundle<T> |
currentEnd, pathEnabled, startsNO_PATH_MESSAGE| Constructor and Description |
|---|
LoopPipe(Pipe<S,S> pipe,
PipeFunction<LoopPipe.LoopBundle<S>,Boolean> whileFunction) |
LoopPipe(Pipe<S,S> pipe,
PipeFunction<LoopPipe.LoopBundle<S>,Boolean> whileFunction,
PipeFunction<LoopPipe.LoopBundle<S>,Boolean> emitFunction) |
| Modifier and Type | Method and Description |
|---|---|
static PipeFunction<LoopPipe.LoopBundle,Boolean> |
createLoopsFunction(int loops) |
static PipeFunction<Object,Boolean> |
createTrueFunction() |
List |
getCurrentPath()
Returns the transformation path to arrive at the current object of the pipe.
|
int |
getLoops() |
List<Pipe> |
getPipes() |
protected S |
processNextStart() |
void |
reset()
A pipe may maintain state.
|
void |
setStarts(Iterator<S> iterator)
Set an iterator of S objects to the head (start) of the pipe.
|
String |
toString() |
enablePathgetPathToHere, hasNext, iterator, next, remove, setStarts, setStartspublic LoopPipe(Pipe<S,S> pipe, PipeFunction<LoopPipe.LoopBundle<S>,Boolean> whileFunction, PipeFunction<LoopPipe.LoopBundle<S>,Boolean> emitFunction)
public LoopPipe(Pipe<S,S> pipe, PipeFunction<LoopPipe.LoopBundle<S>,Boolean> whileFunction)
protected S processNextStart()
processNextStart in class AbstractPipe<S,S>public void setStarts(Iterator<S> iterator)
Pipepublic String toString()
toString in class AbstractPipe<S,S>public int getLoops()
public List getCurrentPath()
PipegetCurrentPath in interface Pipe<S,S>getCurrentPath in class AbstractPipe<S,S>public void reset()
Pipepublic static PipeFunction<Object,Boolean> createTrueFunction()
public static PipeFunction<LoopPipe.LoopBundle,Boolean> createLoopsFunction(int loops)
Copyright © 2010-2014. All Rights Reserved.