Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. compat/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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top