public interface LoopVars
loopWithVars
call using builder pattern
Example: LoopVars.var("*a", 1).var("*b", 2)
Modifier and Type | Interface and Description |
---|---|
static interface |
LoopVars.Impl |
static class |
LoopVars.LoopVar |
static class |
LoopVars.LoopVarsCollector |
Modifier and Type | Method and Description |
---|---|
static LoopVars.Impl |
create()
Creates an empty LoopVars.
|
static LoopVars.Impl |
var(java.lang.String var,
java.lang.Object init)
Declare a var with initial value for first iteration of loop
|
static LoopVars.Impl create()
LoopVars.var("*a", 1)
is equivalent to
LoopVars.create().var("*a", 1)
.static LoopVars.Impl var(java.lang.String var, java.lang.Object init)
var
- Varinit
- Initial value