public final class ArtifactUtils extends Object
Constructor and Description |
---|
ArtifactUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Artifact> |
artifactMapByVersionlessId(Collection<Artifact> artifacts) |
static Artifact |
copyArtifact(Artifact artifact) |
static <T extends Collection<Artifact>> |
copyArtifacts(Collection<Artifact> from,
T to)
Returns
to collection |
static <K,T extends Map<K,Artifact>> |
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) |
public ArtifactUtils()
public static boolean isSnapshot(String version)
public static String toSnapshotVersion(String version)
public static String versionlessKey(Artifact artifact)
public static String versionlessKey(String groupId, String artifactId)
public static Map<String,Artifact> artifactMapByVersionlessId(Collection<Artifact> artifacts)
public static Artifact copyArtifactSafe(Artifact artifact)
public static Artifact copyArtifact(Artifact artifact)
public static <T extends Collection<Artifact>> T copyArtifacts(Collection<Artifact> from, T to)
to
collectionpublic static <K,T extends Map<K,Artifact>> T copyArtifacts(Map<K,? extends Artifact> from, T to)
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.