org.apache.maven.artifact
Class ArtifactUtils

java.lang.Object
  extended by org.apache.maven.artifact.ArtifactUtils

public final class ArtifactUtils
extends Object


Constructor Summary
ArtifactUtils()
           
 
Method Summary
static Map<String,Artifact> artifactMapByVersionlessId(Collection<Artifact> artifacts)
           
static Artifact copyArtifact(Artifact artifact)
           
static
<T extends Collection<Artifact>>
T
copyArtifacts(Collection<Artifact> from, T to)
          Returns to collection
static
<K,T extends Map<K,Artifact>>
T
copyArtifacts(Map<K,? extends Artifact> from, T to)
           
static Artifact copyArtifactSafe(Artifact artifact)
           
static boolean isSnapshot(String version)
           
static String key(Artifact artifact)
           
static String key(String groupId, String artifactId, String version)
           
static String toSnapshotVersion(String version)
           
static String versionlessKey(Artifact artifact)
           
static String versionlessKey(String groupId, String artifactId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactUtils

public ArtifactUtils()
Method Detail

isSnapshot

public static boolean isSnapshot(String version)

toSnapshotVersion

public static String toSnapshotVersion(String version)

versionlessKey

public static String versionlessKey(Artifact artifact)

versionlessKey

public static String versionlessKey(String groupId,
                                    String artifactId)

key

public static String key(Artifact artifact)

key

public static String key(String groupId,
                         String artifactId,
                         String version)

artifactMapByVersionlessId

public static Map<String,Artifact> artifactMapByVersionlessId(Collection<Artifact> artifacts)

copyArtifactSafe

public static Artifact copyArtifactSafe(Artifact artifact)

copyArtifact

public static Artifact copyArtifact(Artifact artifact)

copyArtifacts

public static <T extends Collection<Artifact>> T copyArtifacts(Collection<Artifact> from,
                                                               T to)
Returns to collection


copyArtifacts

public static <K,T extends Map<K,Artifact>> T copyArtifacts(Map<K,? extends Artifact> from,
                                                            T to)


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.