src/main/java/org/g_node/nix/Block.java
/**
     * Get all sources in this block recursively.
     * <p>
     * This method traverses the tree of all sources in the block. The traversal
     * is accomplished via breadth first and can be limited in depth. On each node or
     * source a filter is applied. If the filter returns true the respective source
     * will be added to the result list.
     * By default a filter is used that accepts all sources.
     *
     * @param filter   A filter function.
     * @param maxDepth The maximum depth of traversal.
     * @return A list containing the matching sources.
     * @see Source
     */
Get all sources in this block recursively.

This method traverses the tree of all sources in the block. The traversal
is accomplished via breadth first and can be limited in depth. On each node or
source a filter is applied. If the filter returns true the respective source
will be added to the result list.
By default a filter is used that accepts all sources.

@param filter   A filter function.
@param maxDepth The maximum depth of traversal.
@return A list containing the matching sources.
@see Source
Get all sources in this block recursively . This method traverses the tree of all sources in the block . The traversal is accomplished via breadth first and can be limited in depth . On each node or source a filter is applied . If the filter returns true the respective source will be added to the result list . By default a filter is used that accepts all sources . @param filter A filter function . @param maxDepth The maximum depth of traversal . @return A list containing the matching sources . @see Source
public List<Source> findSources(Predicate<Source> filter, int maxDepth) {
        List<Source> result = new ArrayList<>();
        for (Source source : getSources()) {
            result.addAll(source.findSources(filter, maxDepth));
        }
        return result;
    }
public List < Source > findSources ( Predicate < Source > filter , int maxDepth ) { List < Source > result = new ArrayList < > ( ) ; for ( Source source : getSources ( ) ) { result . addAll ( source . findSources ( filter , maxDepth ) ) ; } return result ; }
Get all sources in this block recursively.
Get all sources in this block recursively .