Package lumis.portal.deployment
Class Version
- java.lang.Object
-
- lumis.portal.deployment.Version
-
public class Version extends java.lang.Object implements IVersion
Version implementation for deployment Component.- Since:
- 7.1.0
- Version:
- $Revision$ $Date$
- 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(java.lang.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.java.lang.String
toString()
Returns the string representation of this version.
-
-
-
Method Detail
-
compareTo
public int compareTo(IVersion o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<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 java.lang.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()
.
-
fromString
public static Version fromString(java.lang.String raw)
-
-