public class GenericVersion extends Version
| Constructor and Description |
|---|
GenericVersion(int major)
Creates a new
GenericVersion |
GenericVersion(int major,
int minor)
Creates a new
GenericVersion |
GenericVersion(int major,
int minor,
int build)
Creates a new
GenericVersion |
GenericVersion(int major,
int minor,
int build,
int revision)
Creates a new
GenericVersion |
GenericVersion(int major,
int minor,
int build,
int revision,
VersionType type)
Creates a new
GenericVersion |
GenericVersion(int major,
int minor,
int build,
int revision,
VersionType type,
String codeName)
Creates a new
GenericVersion |
| Modifier and Type | Method and Description |
|---|---|
GenericVersion |
clone()
Clones this
GenericVersion |
int |
compareTo(Version t)
Compares this
GenericVersion to another Version |
int |
getBuild()
Gets the build number
|
int |
getMajor()
Gets the major version number
|
int |
getMinor()
Gets the minor version number
|
int |
getRevision()
Gets the revision number
|
int |
hashCode()
Gets this
GenericVersion'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
|
void |
setRevision(int revision)
Sets the revision number
|
GenericVersion |
toGenericVersion()
Converts this
GenericVersion to a GenericVersion |
String |
toString()
Converts this
GenericVersion to a String |
equals, get, getCodeName, getType, setCodeName, setTypepublic GenericVersion(int major)
GenericVersionmajor - The major version number to usepublic GenericVersion(int major,
int minor)
GenericVersionmajor - The major version number to useminor - The minor version number to usepublic GenericVersion(int major,
int minor,
int build)
GenericVersionmajor - The major version number to useminor - The minor version number to usebuild - The build number to usepublic GenericVersion(int major,
int minor,
int build,
int revision)
GenericVersionmajor - The major version number to useminor - The minor version number to usebuild - The build number to userevision - The revision number to usepublic GenericVersion(int major,
int minor,
int build,
int revision,
VersionType type)
GenericVersionmajor - The major version number to useminor - The minor version number to usebuild - The build number to userevision - The revision number to usetype - The VersionType to usepublic GenericVersion(int major,
int minor,
int build,
int revision,
VersionType type,
String codeName)
GenericVersionmajor - The major version number to useminor - The minor version number to usebuild - The build number to userevision - The revision 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 final int getRevision()
public final void setRevision(int revision)
revision - The revision numberpublic int compareTo(Version t)
GenericVersion to another Versiont - The other Versionpublic GenericVersion toGenericVersion()
GenericVersion to a GenericVersiontoGenericVersion in class VersionGenericVersion that you started out with.public String toString()
GenericVersion to a Stringpublic GenericVersion clone()
GenericVersionclone in class VersionGenericVersionpublic int hashCode()
GenericVersion's hashCodeCopyright © 2012 Massive Dynamics. All Rights Reserved.