Class Trees


  • public class Trees
    extends java.lang.Object
    • Constructor Detail

      • Trees

        public Trees()
    • Method Detail

      • visitParentBeforeChild

        public 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. The BiConsumer is applied to each node and the second parameter represents the current depth of the node in the tree.
      • doesBlockHaveAParallelParent

        public 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