public class NumericVersion extends Version
NumericVersion uses a single integer to track the version number| Constructor and Description |
|---|
NumericVersion(int version)
Creates a new
NumericVersion |
NumericVersion(int version,
VersionType type)
Creates a new
NumericVersion |
NumericVersion(int version,
VersionType type,
String codeName)
Creates a new
NumericVersion |
| Modifier and Type | Method and Description |
|---|---|
NumericVersion |
clone()
Clones this
NumericVersion |
int |
compareTo(Version t)
Compares this
NumericVersion with another Version |
int |
getVersion()
Gets the version number
|
int |
hashCode()
Gets this
NumericVersion's hashCode |
void |
setVersion(int version)
Sets the version number
|
GenericVersion |
toGenericVersion()
Creates a
GenericVersion that represents this NumericVersion |
String |
toString()
Returns this
NumericVersion as a String |
equals, get, getCodeName, getType, setCodeName, setTypepublic NumericVersion(int version)
NumericVersionversion - The version number to usepublic NumericVersion(int version,
VersionType type)
NumericVersionversion - The version number to usetype - The VersionType to usepublic NumericVersion(int version,
VersionType type,
String codeName)
NumericVersionversion - The version number to usetype - The VersionType to usecodeName - The code name to usepublic final int getVersion()
public final void setVersion(int version)
version - The version numberpublic GenericVersion toGenericVersion()
GenericVersion that represents this NumericVersiontoGenericVersion in class VersionGenericVersionpublic String toString()
NumericVersion as a Stringpublic int compareTo(Version t)
NumericVersion with another Versiont - The Versionpublic NumericVersion clone()
NumericVersionclone in class VersionNumericVersionpublic int hashCode()
NumericVersion's hashCodeCopyright © 2012 Massive Dynamics. All Rights Reserved.