Package org.sonar.updatecenter.common
Class Artifact
java.lang.Object
org.sonar.updatecenter.common.Artifact
- All Implemented Interfaces:
Comparable<Artifact>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ReleaseaddRelease(Release release) final intbooleandoesContainVersion(Version version) final booleanReturns the union of releases and dev releasegetAllReleases(Product product) final ReleasegetFirstCompatible(Version sonarVersion, Product product) Lowest plugin version (including dev) that is compatible with provided SQ versionfinal StringgetKey()final ReleasegetLastCompatible(Release release) final ReleasegetLastCompatible(Version version, Product product) final ReleasegetLastCompatibleIncludingDev(Version sonarVersion, Product product) Same asgetLastCompatible(Release)but includedevReleaseif availablefinal ReleasegetLastCompatibleReleaseIfUpgrade(Version sonarVersion, Product product) final Releasefinal ReleasegetLastRelease(Product product) Keep only latest patch version.getMajorReleases(Product product) final ReleasegetMinimalRelease(Version minimalVersion) getPublicVersions(Product product) getRelease(String versionOrAliases) getRelease(String versionOrAliases, Product product) final ReleasegetRelease(Version version) final ReleasegetRelease(Version version, Product product) Don't include dev version.getReleases(Product product) getReleasesGreaterThan(String version, Product product) Shortcut for Ruby code (?)getReleasesGreaterThan(Version version, Product product) final inthashCode()final ReleasesetDevRelease(Release release) final Artifact
-
Field Details
-
key
-
releases
-
-
Constructor Details
-
Artifact
-
-
Method Details
-
getKey
-
setKey
-
setDevRelease
-
getDevRelease
-
addRelease
-
getRelease
- Throws:
NoSuchElementException- if release could not be found
-
getRelease
- Throws:
NoSuchElementException- if release could not be found
-
doesContainVersion
-
getRelease
- Parameters:
versionOrAliases- Any version or keywords "DEV" or "LATEST_RELEASE"- Throws:
NoSuchElementException- if release could not be found
-
getRelease
-
getReleases
Don't include dev version. -
getReleases
-
getReleasesGreaterThan
Shortcut for Ruby code (?) -
getReleasesGreaterThan
-
getVersions
- Returns:
- both public and private versions but not archived versions
-
getPublicVersions
-
getPublicVersions
-
getPublicReleases
-
getArchivedReleases
-
getPrivateVersions
-
getArchivedVersions
-
getLastRelease
-
getLastRelease
-
getLastCompatible
-
getLastCompatible
-
getLastCompatibleIncludingDev
@CheckForNull public final Release getLastCompatibleIncludingDev(Version sonarVersion, Product product) Same asgetLastCompatible(Release)but includedevReleaseif available -
getFirstCompatible
Lowest plugin version (including dev) that is compatible with provided SQ version -
getMinimalRelease
-
getLastCompatibleReleaseIfUpgrade
@CheckForNull public final Release getLastCompatibleReleaseIfUpgrade(Version sonarVersion, Product product) -
getAllReleases
Returns the union of releases and dev release -
getAllReleases
-
getMajorReleases
Keep only latest patch version. For example for 3.7, 3.7.1, 3.7.2 we keep only 3.7.2 -
getMajorReleases
-
equals
-
hashCode
public final int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Artifact>
-