public interface Version extends java.lang.Comparable<Version>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PNAME_APPLICATION_NAME
The name of the System property the value of which is equal to
the value of
getApplicationName() . |
static java.lang.String |
PNAME_APPLICATION_VERSION
The name of the System property the value of which is equal to
the value of
toString() . |
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 |
getApplicationName()
Returns the name of the application that we're currently running.
|
java.lang.String |
getNightlyBuildID()
If this is a nightly build, returns the build identifies (e.g.
|
java.lang.String |
getPreReleaseID()
Returns the version prerelease ID of the current Jitsi version
and null if this version is not a prerelease.
|
int |
getVersionMajor()
Returns the version major of the current Jitsi version.
|
int |
getVersionMinor()
Returns the version minor of the current Jitsi version.
|
boolean |
isNightly()
Indicates if this Jitsi version corresponds to a nightly build
of a repository snapshot or to an official Jitsi release.
|
boolean |
isPreRelease()
Indicates whether this version represents a prerelease (i.e.
|
java.lang.String |
toString()
Returns a String representation of this Version instance.
|
static final java.lang.String PNAME_APPLICATION_NAME
getApplicationName()
. Expected to be set by
implementers of the VersionService and Version
interfaces.static final java.lang.String PNAME_APPLICATION_VERSION
toString()
. Expected to be set by
implementers of the VersionService and Version
interfaces.int getVersionMajor()
int getVersionMinor()
boolean isNightly()
java.lang.String getNightlyBuildID()
boolean isPreRelease()
java.lang.String getPreReleaseID()
int compareTo(Version version)
compareTo
in interface java.lang.Comparable<Version>
version
- the Version instance that we'd like to compare
to this one.boolean equals(java.lang.Object version)
equals
in class java.lang.Object
version
- the version instance that we'd like to compare with this
one.java.lang.String getApplicationName()
java.lang.String toString()
toString
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.