Code example for Collection

Methods: contains

0
            return true; 
        } 
 
        String id = dependency.getArtifact().getArtifactId();
 
        if ( excludes.contains( id ) )
        { 
            return false; 
        } 
 
        id = dependency.getArtifact().getGroupId() + ':' + id;
 
        if ( excludes.contains( id ) )
        { 
            return false; 
        } 
 
        return true; 
    }