Package lumis.portal.deployment
Class Version
- java.lang.Object
-
- lumis.portal.deployment.Version
-
- All Implemented Interfaces:
Serializable
,Comparable<IVersion>
,IVersion
public class Version extends Object implements IVersion
Version implementation for deployment Component.- Since:
- 7.1.0
- Version:
- $Revision: 16037 $ $Date: 2013-11-21 20:58:50 -0200 (Thu, 21 Nov 2013) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Version(int major, int minor, int release, int build)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IVersion o)
static Version
fromString(String raw)
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.
-
-
-
Method Detail
-
compareTo
public int compareTo(IVersion o)
- Specified by:
compareTo
in interfaceComparable<IVersion>
-
getMajor
public int getMajor()
Description copied from interface:IVersion
Returns the major version number.
-
getMinor
public int getMinor()
Description copied from interface:IVersion
Returns the minor version number.
-
getRelease
public int getRelease()
Description copied from interface:IVersion
Returns the release version number.- Specified by:
getRelease
in interfaceIVersion
- Returns:
- the release version number.
-
getBuild
public int getBuild()
Description copied from interface:IVersion
Returns the build version number.
-
toString
public String toString()
Description copied from interface:IVersion
Returns the string representation of this version. The result is equivalent to: "" +IVersion.getMajor()
+ "." +IVersion.getMinor()
+ "." +IVersion.getRelease()
+ "." +IVersion.getBuild()
.
-
-