public class LoopBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
LoopBuilder.LoopBuilder2 |
Modifier and Type | Method and Description |
---|---|
LoopBuilder |
doNotThrowWhenMaxCountIsReached()
An optional method to override the default behaviour
If the maximum loop count is exceeded, it will log a warning instead of throwing
|
LoopBuilder.LoopBuilder2 |
iterateWhile(java.util.function.Function<SequenceItem,BooleanVertex> conditionFunction)
A mandatory method to specify the condition
|
LoopBuilder.LoopBuilder2 |
iterateWhile(java.util.function.Supplier<BooleanVertex> conditionSupplier)
A mandatory method to specify the condition
|
LoopBuilder |
mapping(VertexLabel proxyLabel,
VertexLabel proxysParentLabel)
An optional method to add custom mappings
|
LoopBuilder |
withMaxIterations(int maxCount)
An optional method to override the default value
|
public LoopBuilder withMaxIterations(int maxCount)
maxCount
- the max number of times the loop can runpublic LoopBuilder doNotThrowWhenMaxCountIsReached()
public LoopBuilder mapping(VertexLabel proxyLabel, VertexLabel proxysParentLabel)
proxyLabel
- the label assigned to the ProxyVertex in frame tproxysParentLabel
- the label assigned to a Vertex in frame t-1 which will become the ProxyVertex's parentpublic LoopBuilder.LoopBuilder2 iterateWhile(java.util.function.Supplier<BooleanVertex> conditionSupplier)
conditionSupplier
- a lambda that creates and returns a new BooleanVertexpublic LoopBuilder.LoopBuilder2 iterateWhile(java.util.function.Function<SequenceItem,BooleanVertex> conditionFunction)
conditionFunction
- a lambda that takes the current SequenceItem and creates and returns a new BooleanVertex