Package lumis.portal.deployment
Interface IVersion
-
- All Superinterfaces:
Comparable<IVersion>
,Serializable
- All Known Implementing Classes:
Version
@StableMinor(version="14.0", sinceVersion="7.1") public interface IVersion extends Comparable<IVersion>, Serializable
LumisXP artifact version. The version is composed by four parts:
- The major number
- The minor number
- The release number
- The build number
"."
to compose the string representation.
For example:
- Version 2.1.0.130627 - major number: 2; minor number: 1; release number: 0; build number: 130627
- Version 0.0.1.1 - major number: 0; minor number: 0; release number: 1; build number: 1
comparable
with other version accordingly to the following definition:
-
A version
X
is greater than a versionY
if:- X.
getMajor()
is greater than Y.getMajor()
- X.
getMajor()
is equal to Y.getMajor()
and X.getMinor()
is greater than Y.getMinor()
- X.
getMajor()
is equal to Y.getMajor()
and X.getMinor()
is equal to Y.getMinor()
and X.getRelease()
is greater than Y.getRelease()
- X.
getMajor()
is equal to Y.getMajor()
and X.getMinor()
is equal to Y.getMinor()
and X.getRelease()
is equal to Y.getRelease()
and X.getBuild()
is greater than Y.getBuild()
- X.
-
A version
X
is equal to a versionY
if X.getMajor()
is equal to Y.getMajor()
and X.getMinor()
is equal to Y.getMinor()
and X.getRelease()
is equal to Y.getRelease()
. and X.getBuild()
is equal to Y.getBuild()
-
A version
X
is less than a versionY
if X is not greater than nor equal to Y.
- 0.1.1.1 is greater than 0.1.1.0
- 1.0.0.0 is greater than 0.9.9.9
- 1.2.3.4 is equal to 1.2.3.4
- Since:
- 7.1.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBuild()
Returns the build version number.int
getMajor()
Returns the major version number.int
getMinor()
Returns the minor version number.int
getRelease()
Returns the release version number.String
toString()
Returns the string representation of this version.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getMajor
int getMajor()
Returns the major version number.- Returns:
- the major version number.
- Since:
- 7.1.0
-
getMinor
int getMinor()
Returns the minor version number.- Returns:
- the minor version number.
- Since:
- 7.1.0
-
getRelease
int getRelease()
Returns the release version number.- Returns:
- the release version number.
- Since:
- 7.1.0
-
getBuild
int getBuild()
Returns the build version number.- Returns:
- the build version number.
- Since:
- 7.1.0
-
toString
String toString()
Returns the string representation of this version. The result is equivalent to: "" +getMajor()
+ "." +getMinor()
+ "." +getRelease()
+ "." +getBuild()
.
-
-