Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for countNodes (0.11 sec)

  1. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

        private static int countNodes(MetadataTreeNode tree) {
            if (tree == null) {
                return 0;
            }
    
            int count = 1;
            MetadataTreeNode[] kids = tree.getChildren();
            if (kids == null || kids.length < 1) {
                return count;
            }
            for (MetadataTreeNode n : kids) {
                count += countNodes(n);
            }
    
            return count;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Oct 05 18:41:13 UTC 2023
    - 13.1K bytes
    - Viewed (0)
Back to top