public class TwoPartVersion extends Version
| Constructor and Description |
|---|
TwoPartVersion(int major)
Creates a new
TwoPartVersion |
TwoPartVersion(int major,
int minor)
Creates a new
TwoPartVersion |
TwoPartVersion(int major,
int minor,
VersionType type)
Creates a new
TwoPartVersion |
TwoPartVersion(int major,
int minor,
VersionType type,
String codeName)
Creates a new
TwoPartVersion |
| Modifier and Type | Method and Description |
|---|---|
TwoPartVersion |
clone()
Clones this
TwoPartVersion |
int |
compareTo(Version t)
Compares this
TwoPartVersion to another Version |
int |
getMajor()
Gets the major version number
|
int |
getMinor()
Gets the minor version number
|
int |
hashCode()
Gets this
TwoPartVersion's hashCode |
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 TwoPartVersion |
String |
toString()
Converts this
TwoPartVersion to a String |
equals, get, getCodeName, getType, setCodeName, setTypepublic TwoPartVersion(int major)
TwoPartVersionmajor - The major version number to usepublic TwoPartVersion(int major,
int minor)
TwoPartVersionmajor - The major version number to useminor - The minor version number to usepublic TwoPartVersion(int major,
int minor,
VersionType type)
TwoPartVersionmajor - The major version number to useminor - The minor version number to usetype - The TwoPartVersion to usepublic TwoPartVersion(int major,
int minor,
VersionType type,
String codeName)
TwoPartVersionmajor - The major version number to useminor - The minor version number to usetype - The TwoPartVersion 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 GenericVersion toGenericVersion()
GenericVersion from this TwoPartVersiontoGenericVersion in class VersionGenericVersionpublic String toString()
TwoPartVersion to a Stringpublic int compareTo(Version t)
TwoPartVersion to another Versiont - The other Versionpublic TwoPartVersion clone()
TwoPartVersionclone in class VersionTwoPartVersionpublic int hashCode()
TwoPartVersion's hashCodeCopyright © 2012 Massive Dynamics. All Rights Reserved.