src/main/java/org/g_node/nix/File.java
/**
     * Get all sections in this file recursively.
     * <p>
     * This method traverses the trees of all section in the file. The traversal
     * is accomplished via breadth first and can be limited in depth. On each node or
     * section a filter is applied. If the filter returns true the respective section
     * will be added to the result list.
     *
     * @param filter   A filter function.
     * @param maxDepth The maximum depth of traversal.
     * @return A list containing the matching sections.
     * @see Section
     */
Get all sections in this file recursively.

This method traverses the trees of all section in the file. The traversal
is accomplished via breadth first and can be limited in depth. On each node or
section a filter is applied. If the filter returns true the respective section
will be added to the result list.

@param filter   A filter function.
@param maxDepth The maximum depth of traversal.
@return A list containing the matching sections.
@see Section
Get all sections in this file recursively . This method traverses the trees of all section in the file . The traversal is accomplished via breadth first and can be limited in depth . On each node or section a filter is applied . If the filter returns true the respective section will be added to the result list . @param filter A filter function . @param maxDepth The maximum depth of traversal . @return A list containing the matching sections . @see Section
public List<Section> findSections(Predicate<Section> filter, int maxDepth) {
        List<Section> result = new ArrayList<>();
        for (Section section : getSections()) {
            result.addAll(section.findSections(filter, maxDepth));
        }
        return result;
    }
public List < Section > findSections ( Predicate < Section > filter , int maxDepth ) { List < Section > result = new ArrayList < > ( ) ; for ( Section section : getSections ( ) ) { result . addAll ( section . findSections ( filter , maxDepth ) ) ; } return result ; }
Get all sections in this file recursively.
Get all sections in this file recursively .