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 static boolean isSnapshot(String version)
public static Map<String,Artifact> artifactMapByVersionlessId(Collection<Artifact> artifacts)
public static <T extends Collection<Artifact>> T copyArtifacts(Collection<Artifact> from, T to)
to
collectionCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.