public class ArtifactVersions extends AbstractVersionDetails implements Comparable<ArtifactVersions>
| Constructor and Description |
|---|
ArtifactVersions(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.artifact.versioning.ArtifactVersion> versions,
VersionComparator versionComparator)
Creates a new
ArtifactVersions instance. |
ArtifactVersions(ArtifactVersions other)
Creates a new
ArtifactVersions instance as shallow copy of the other |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ArtifactVersions that) |
boolean |
equals(Object o) |
org.apache.maven.artifact.Artifact |
getArtifact()
Returns the artifact who's version information we are holding.
|
String |
getArtifactId()
Returns the artifactId of the artifact which versions we are holding.
|
String |
getGroupId()
Returns the groupId of the artifact which versions we are holding.
|
String |
getVersion()
Returns the artifactId of the artifact which versions we are holding.
|
VersionComparator |
getVersionComparator()
Gets the rule for version comparison of this artifact.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
getVersions(boolean includeSnapshots)
Returns all available versions in increasing order.
|
int |
hashCode() |
static boolean |
isVersionInRange(org.apache.maven.artifact.versioning.ArtifactVersion version,
org.apache.maven.artifact.versioning.VersionRange range)
Checks if the version is in the range (and ensures that the range respects the
-! syntax to rule out
any qualifiers from range boundaries). |
String |
toString() |
containsVersion, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getCurrentVersion, getLowerBound, getNewerVersions, getNewerVersions, getNewerVersions, getNewestUpdate, getNewestUpdate, getNewestUpdate, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getVersions, getVersions, getVersions, getVersions, getVersions, getVersions, isCurrentVersionDefined, isIncludeSnapshots, setCurrentVersion, setCurrentVersion, setIncludeSnapshotspublic ArtifactVersions(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.artifact.versioning.ArtifactVersion> versions,
VersionComparator versionComparator)
ArtifactVersions instance.artifact - The artifact.versions - The versions.versionComparator - The version comparison rule.public ArtifactVersions(ArtifactVersions other)
ArtifactVersions instance as shallow copy of the otherother - other object to be linked topublic int compareTo(ArtifactVersions that)
compareTo in interface Comparable<ArtifactVersions>public static boolean isVersionInRange(org.apache.maven.artifact.versioning.ArtifactVersion version,
org.apache.maven.artifact.versioning.VersionRange range)
-! syntax to rule out
any qualifiers from range boundaries).version - the version to check.range - the range to check.true if and only if the version is in the range.public org.apache.maven.artifact.Artifact getArtifact()
public String getGroupId()
public String getArtifactId()
public String getVersion()
public org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(boolean includeSnapshots)
VersionDetailsgetVersions in interface VersionDetailsgetVersions in class AbstractVersionDetailsincludeSnapshots - true if snapshots are to be included.public VersionComparator getVersionComparator()
VersionDetailsgetVersionComparator in interface VersionDetailsCopyright © 2008–2022 MojoHaus. All rights reserved.