public abstract class Artifact extends Object implements Comparable<Artifact>
| Modifier and Type | Field and Description |
|---|---|
protected String |
key |
protected SortedSet<Release> |
releases |
| Modifier | Constructor and Description |
|---|---|
protected |
Artifact(String key) |
protected Artifact(String key)
public final String getKey()
public Release getDevRelease()
public final Release getRelease(Version version)
NoSuchElementException - if release could not be foundpublic boolean doesContainVersion(Version version)
public Release getRelease(String versionOrAliases)
versionOrAliases - Any version or keywords "DEV" or "LATEST_RELEASE"NoSuchElementException - if release could not be foundpublic final SortedSet<Release> getReleasesGreaterThan(String version)
public final SortedSet<Version> getVersions()
@CheckForNull public final Release getLastRelease()
@CheckForNull public final Release getLastCompatibleRelease(Version sqVersion)
@CheckForNull public final Release getLastCompatible(Version sonarVersion)
getLastCompatibleRelease(Version) but include devRelease if available@CheckForNull public final Release getFirstCompatible(Version sonarVersion)
@CheckForNull public final Release getMinimalRelease(Version minimalVersion)
@CheckForNull public final Release getLastCompatibleReleaseIfUpgrade(Version sonarVersion)
public SortedSet<Release> getAllReleases()
public SortedSet<Release> getMajorReleases()
public final int compareTo(Artifact other)
compareTo in interface Comparable<Artifact>Copyright © 2010–2019 SonarSource. All rights reserved.