public class ThreePartVersion extends Version
| Constructor and Description |
|---|
ThreePartVersion(int major)
Creates a new
ThreePartVersion |
ThreePartVersion(int major,
int minor)
Creates a new
ThreePartVersion |
ThreePartVersion(int major,
int minor,
int build)
Creates a new
ThreePartVersion |
ThreePartVersion(int major,
int minor,
int build,
VersionType type)
Creates a new
ThreePartVersion |
ThreePartVersion(int major,
int minor,
int build,
VersionType type,
String codeName)
Creates a new
ThreePartVersion |
| Modifier and Type | Method and Description |
|---|---|
ThreePartVersion |
clone()
Clones this
ThreePartVersion |
int |
compareTo(Version t)
Compares this
ThreePartVersion to another Version |
int |
getBuild()
Gets the build number
|
int |
getMajor()
Gets the major version number
|
int |
getMinor()
Gets the minor version number
|
int |
hashCode()
Gets this
ThreePartVersion's hashCode |
void |
setBuild(int build)
Sets the build number
|
void |
setMajor(int major)
Sets the major version number
|
void |
setMinor(int minor)
Sets the minor version number
|
GenericVersion |
toGenericVersion()
Creates a
GenericVersion from this ThreePartVersion |
String |
toString()
Converts this
ThreePartVersion to a String |
equals, get, getCodeName, getType, setCodeName, setTypepublic ThreePartVersion(int major)
ThreePartVersionmajor - The major version number to usepublic ThreePartVersion(int major,
int minor)
ThreePartVersionmajor - The major version number to useminor - The minor version number to usepublic ThreePartVersion(int major,
int minor,
int build)
ThreePartVersionmajor - The major version number to useminor - The minor version number to usebuild - The build number to usepublic ThreePartVersion(int major,
int minor,
int build,
VersionType type)
ThreePartVersionmajor - The major version number to useminor - The minor version number to usebuild - The build number to usetype - The VersionType to usepublic ThreePartVersion(int major,
int minor,
int build,
VersionType type,
String codeName)
ThreePartVersionmajor - The major version number to useminor - The minor version number to usebuild - The build number to usetype - The VersionType to usecodeName - The code name to usepublic final int getMajor()
public final void setMajor(int major)
major - The major version numberpublic final int getMinor()
public final void setMinor(int minor)
minor - The minor version numberpublic final int getBuild()
public final void setBuild(int build)
build - The build numberpublic GenericVersion toGenericVersion()
GenericVersion from this ThreePartVersiontoGenericVersion in class VersionGenericVersionpublic String toString()
ThreePartVersion to a Stringpublic int compareTo(Version t)
ThreePartVersion to another Versiont - The other Versionpublic ThreePartVersion clone()
ThreePartVersionclone in class VersionThreePartVersionpublic int hashCode()
ThreePartVersion's hashCodeCopyright © 2012 Massive Dynamics. All Rights Reserved.