Package org.sonar.updatecenter.common
Class Version
java.lang.Object
org.sonar.updatecenter.common.Version
- All Implemented Interfaces:
Comparable<Version>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintcompareToIgnoreQualifier(Version other) static Versionstatic Versionstatic VersionbooleangetMajor()getMinor()getName()getPatch()inthashCode()booleanisCompatibleWith(Version version) Two versions are compatible when they are identical except for qualifier.booleanstatic booleanisSnapshot(String version) toString()
-
Constructor Details
-
Version
-
-
Method Details
-
getMajor
-
getMinor
-
getPatch
-
getPatch2
-
getName
-
getQualifier
-
getFromString
-
isPatchVersion
public boolean isPatchVersion() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-
compareToIgnoreQualifier
-
toString
-
create
-
create
-
create
-
isSnapshot
-
removeQualifier
-
isCompatibleWith
Two versions are compatible when they are identical except for qualifier.
-