Package org.sonar.updatecenter.common
Class Sonar
- java.lang.Object
-
- org.sonar.updatecenter.common.Artifact
-
- org.sonar.updatecenter.common.Sonar
-
- All Implemented Interfaces:
Comparable<Artifact>
public class Sonar extends Artifact
-
-
Constructor Summary
Constructors Constructor Description Sonar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReleasegetLtsRelease()ReleasegetRelease(String versionOrAliases)SonarsetLtsRelease(String ltsVersion)SonarsetReleases(String[] versions)shortcut only for sonar, no need to have other fields than version-
Methods inherited from class org.sonar.updatecenter.common.Artifact
addRelease, addRelease, addRelease, compareTo, doesContainVersion, equals, getAllReleases, getArchivedReleases, getArchivedVersions, getDevRelease, getFirstCompatible, getKey, getLastCompatible, getLastCompatibleRelease, getLastCompatibleReleaseIfUpgrade, getLastRelease, getMajorReleases, getMinimalRelease, getPrivateVersions, getPublicReleases, getPublicVersions, getRelease, getReleases, getReleasesGreaterThan, getReleasesGreaterThan, getVersions, hashCode, setDevRelease, setKey
-
-
-
-
Method Detail
-
getLtsRelease
public Release getLtsRelease()
-
setReleases
public Sonar setReleases(String[] versions)
shortcut only for sonar, no need to have other fields than version
-
getRelease
public Release getRelease(String versionOrAliases)
- Overrides:
getReleasein classArtifact- Parameters:
versionOrAliases- Any version or keywords "DEV", "LTS" or "LATEST_RELEASE"- Throws:
NoSuchElementException- if release could not be found
-
-