Package io.molr.mole.core.runnable.lang
Class ForeachBranchRoot<T>
- java.lang.Object
-
- io.molr.mole.core.runnable.lang.OngoingNode<B>
-
- io.molr.mole.core.runnable.lang.GenericOngoingBranch<ForeachBranchRoot<T>>
-
- io.molr.mole.core.runnable.lang.ForeachBranchRoot<T>
-
public class ForeachBranchRoot<T> extends GenericOngoingBranch<ForeachBranchRoot<T>>
-
-
Constructor Summary
Constructors Constructor Description ForeachBranchRoot(BlockNameConfiguration name, RunnableLeafsMission.Builder builder, Block parent, BranchMode mode, Placeholder<? extends Collection<T>> itemsPlaceholder, Map<Placeholder<?>,Function<In,?>> mappings)
ForeachBranchRoot(BlockNameConfiguration name, RunnableLeafsMission.Builder builder, Block parent, BranchMode mode, Placeholder<T> itemPlaceholder, Placeholder<? extends Collection<T>> itemsPlaceholder, Map<Placeholder<?>,Function<In,?>> mappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OngoingContextualBranch<T>
branch(String name, Placeholder<?>... placeholders)
OngoingForeachLeaf<T>
leaf(String name, Placeholder<?>... placeholders)
<C> ForeachBranchRootMapped<T,C>
map(BiFunction<T,In,C> contextFactory)
<C,P1>
ForeachBranchRootMapped<T,C>map(BiFunction<T,P1,C> contextFactory, Placeholder<P1> p1)
<C> ForeachBranchRootMapped<T,C>
map(Function<T,C> contextFactory)
-
Methods inherited from class io.molr.mole.core.runnable.lang.GenericOngoingBranch
block, mode, parallel, parallel, sequential
-
Methods inherited from class io.molr.mole.core.runnable.lang.OngoingNode
blockAttributes, builder, getMappings, let, name, parent, perDefault, perDefaultDont
-
-
-
-
Constructor Detail
-
ForeachBranchRoot
public ForeachBranchRoot(BlockNameConfiguration name, RunnableLeafsMission.Builder builder, Block parent, BranchMode mode, Placeholder<? extends Collection<T>> itemsPlaceholder, Map<Placeholder<?>,Function<In,?>> mappings)
-
ForeachBranchRoot
public ForeachBranchRoot(BlockNameConfiguration name, RunnableLeafsMission.Builder builder, Block parent, BranchMode mode, Placeholder<T> itemPlaceholder, Placeholder<? extends Collection<T>> itemsPlaceholder, Map<Placeholder<?>,Function<In,?>> mappings)
-
-
Method Detail
-
branch
public OngoingContextualBranch<T> branch(String name, Placeholder<?>... placeholders)
-
leaf
public OngoingForeachLeaf<T> leaf(String name, Placeholder<?>... placeholders)
-
map
public <C> ForeachBranchRootMapped<T,C> map(Function<T,C> contextFactory)
-
map
public <C> ForeachBranchRootMapped<T,C> map(BiFunction<T,In,C> contextFactory)
-
map
public <C,P1> ForeachBranchRootMapped<T,C> map(BiFunction<T,P1,C> contextFactory, Placeholder<P1> p1)
-
-