Class SiblingIterator

    • Constructor Detail

      • SiblingIterator

        SiblingIterator​(TinyTree tree,
                        TinyNodeImpl node,
                        java.util.function.Predicate<? super NodeInfo> nodeTest,
                        boolean getChildren)
        Return an enumeration over children or siblings of the context node
        Parameters:
        tree - The TinyTree containing the context node
        node - The context node, the start point for the iteration
        nodeTest - Test that the selected nodes must satisfy, or null indicating that all nodes are selected
        getChildren - True if children of the context node are to be returned, false if following siblings are required