Code example for Collection

Methods: addAll

0
     */ 
    public ExclusionsDependencyFilter( Collection<String> excludes )
    { 
        if ( excludes != null )
        { 
            this.excludes.addAll( excludes );
        } 
    } 
 
    public boolean accept( DependencyNode node, List<DependencyNode> parents )
    { 
        Dependency dependency = node.getDependency();
 
        if ( dependency == null )
        { 
            return true; 
        } 
 
        String id = dependency.getArtifact().getArtifactId();
 
Connect your IDE to all the code out there  Get Codota for Java