public class ApplicationVersion extends java.lang.Object implements java.lang.Comparable<ApplicationVersion>, java.lang.Cloneable
FormatVersion
Constructor and Description |
---|
ApplicationVersion()
Creates a new instance of this class with the default values
0.0.0.0 (stable). |
ApplicationVersion(int majorRelease,
int minorRelease,
int patchLevel,
long buildNumber,
ApplicationType type)
Creates a new instance of this class using the specified values.
|
Modifier and Type | Method and Description |
---|---|
ApplicationVersion |
clone()
Returns a new instance if this class having the same version numbers and application type as this instance.
|
int |
compareTo(ApplicationVersion other)
Compares two application versions.
|
boolean |
equals(java.lang.Object other)
Checks if two versions are equal.
|
long |
getBuildNumber() |
int |
getMajorRelease() |
int |
getMinorRelease() |
int |
getPatchLevel() |
ApplicationType |
getType() |
void |
setBuildNumber(long buildNumber) |
void |
setMajorRelease(int majorRelease) |
void |
setMinorRelease(int minorRelease) |
void |
setPatchLevel(int patchLevel) |
void |
setType(ApplicationType type) |
java.lang.String |
toString()
This method can be overriden if a special name is needed.
|
public ApplicationVersion()
0.0.0.0
(stable).public ApplicationVersion(int majorRelease, int minorRelease, int patchLevel, long buildNumber, ApplicationType type)
majorRelease
- the major release numberminorRelease
- the minor release numberpatchLevel
- the patch level numberbuildNumber
- the build numbertype
- the type of applicationpublic long getBuildNumber()
public int getMajorRelease()
public int getMinorRelease()
public int getPatchLevel()
public ApplicationType getType()
public void setBuildNumber(long buildNumber)
public void setMajorRelease(int majorRelease)
public void setMinorRelease(int minorRelease)
public void setPatchLevel(int patchLevel)
public void setType(ApplicationType type)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int compareTo(ApplicationVersion other)
compareTo
in interface java.lang.Comparable<ApplicationVersion>
public ApplicationVersion clone()
clone
in class java.lang.Object