Code example for LinkedHashSet

Methods: addAll

0
    } 
 
    @Override 
    public List<String> findVersions( Artifact artifact )
    { 
        Collection<String> versions = new LinkedHashSet<String>();
 
        if ( buildReactor != null )
        { 
            versions.addAll( buildReactor.findVersions( artifact ) );
        } 
 
        if ( ideWorkspace != null )
        { 
            versions.addAll( ideWorkspace.findVersions( artifact ) );
        } 
 
        versions.addAll( userLocalArtifactRepository.findVersions( artifact ) );
 
        return Collections.unmodifiableList( new ArrayList<String>( versions ) );
    } 
 
    public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository )