public class Trees
extends java.lang.Object
Constructor and Description |
---|
Trees() |
Modifier and Type | Method and Description |
---|---|
static boolean |
doesBlockHaveAParallelParent(io.molr.commons.domain.Block block,
TreeStructure structure)
Return whether or not the block has a parent in the hierarchy of the provided
TreeStructure that is
parallel |
static void |
logResultsOf(TreeTracker resultTracker,
TreeStructure structure)
Walks through the
TreeStructure logging on screen the result of each node |
static void |
visitParentBeforeChild(TreeStructure structure,
java.util.function.BiConsumer<io.molr.commons.domain.Block,java.lang.Integer> c)
Walk through the provided
TreeStructure visiting the parent before each child. |
public static void logResultsOf(TreeTracker resultTracker, TreeStructure structure)
TreeStructure
logging on screen the result of each nodepublic static void visitParentBeforeChild(TreeStructure structure, java.util.function.BiConsumer<io.molr.commons.domain.Block,java.lang.Integer> c)
TreeStructure
visiting the parent before each child. The BiConsumer
is
applied to each node and the second parameter represents the current depth of the node in the tree.public static boolean doesBlockHaveAParallelParent(io.molr.commons.domain.Block block, TreeStructure structure)
TreeStructure
that is
parallel