PNAME_APPLICATION_NAME, PNAME_APPLICATION_VERSION
Modifier | Constructor and Description |
---|---|
protected |
AbstractVersion(int majorVersion,
int minorVersion,
java.lang.String nightlyBuildID)
Creates version object with custom major, minor and nightly build id.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Version version)
Compares another Version object to this one and returns a
negative, zero or a positive integer if this version instance represents
respectively an earlier, same, or later version as the one indicated
by the version parameter.
|
boolean |
equals(java.lang.Object version)
Compares the version parameter to this version and returns true
if and only if both reference the same Jitsi version and
false otherwise.
|
java.lang.String |
getNightlyBuildID()
If this is a nightly build, returns the build identifies (e.g.
|
int |
getVersionMajor()
Returns the version major of the current Jitsi version.
|
int |
getVersionMinor()
Returns the version minor of the current Jitsi version.
|
java.lang.String |
toString()
Returns a String representation of this Version instance in the generic
form of major.minor[.nightly.build.id].
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationName, getPreReleaseID, isNightly, isPreRelease
protected AbstractVersion(int majorVersion, int minorVersion, java.lang.String nightlyBuildID)
majorVersion
- the major version to use.minorVersion
- the minor version to use.nightlyBuildID
- the nightly build id value for new version object.public int getVersionMajor()
getVersionMajor
in interface Version
public int getVersionMinor()
getVersionMinor
in interface Version
public java.lang.String getNightlyBuildID()
getNightlyBuildID
in interface Version
public int compareTo(Version version)
compareTo
in interface java.lang.Comparable<Version>
compareTo
in interface Version
version
- the Version instance that we'd like to compare
to this one.public boolean equals(java.lang.Object version)
public java.lang.String toString()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.