Interface Version

  • All Implemented Interfaces:
    java.lang.Comparable

    
    public interface Version
     implements Comparable<T>
                        

    Contains version information of the Jitsi instance that we're currently running.

    Author:

    Emil Ivov

    Lyubomir Marinov

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract int getVersionMajor() Returns the version major of the current Jitsi version.
      abstract int getVersionMinor() Returns the version minor of the current Jitsi version.
      abstract boolean isNightly() Indicates if this Jitsi version corresponds to a nightly build of a repository snapshot or to an official Jitsi release.
      abstract String getNightlyBuildID() If this is a nightly build, returns the build identifies (e.g.
      abstract boolean isPreRelease() Indicates whether this version represents a prerelease (i.e.
      abstract String getPreReleaseID() Returns the version prerelease ID of the current Jitsi version and null if this version is not a prerelease.
      abstract 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.
      abstract boolean equals(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.
      abstract String getApplicationName() Returns the name of the application that we're currently running.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getVersionMajor

         abstract int getVersionMajor()

        Returns the version major of the current Jitsi version. In an example 2.3.1 version string 2 is the version major. The version major number changes when a relatively extensive set of new features and possibly rearchitecturing have been applied to the Jitsi.

        Returns:

        the version major integer.

      • getVersionMinor

         abstract int getVersionMinor()

        Returns the version minor of the current Jitsi version. In an example 2.3.1 version string 3 is the version minor. The version minor number changes after adding enhancements and possibly new features to a given Jitsi version.

        Returns:

        the version minor integer.

      • isNightly

         abstract boolean isNightly()

        Indicates if this Jitsi version corresponds to a nightly build of a repository snapshot or to an official Jitsi release.

        Returns:

        true if this is a build of a nightly repository snapshot and false if this is an official Jitsi release.

      • getNightlyBuildID

         abstract String getNightlyBuildID()

        If this is a nightly build, returns the build identifies (e.g. nightly-2007.12.07-06.45.17). If this is not a nightly build Jitsi version, the method returns null.

        Returns:

        a String containing a nightly build identifier or null if

      • isPreRelease

         abstract boolean isPreRelease()

        Indicates whether this version represents a prerelease (i.e. a non-complete release like an alpha, beta or release candidate version).

        Returns:

        true if this version represents a prerelease and false otherwise.

      • getPreReleaseID

         abstract String getPreReleaseID()

        Returns the version prerelease ID of the current Jitsi version and null if this version is not a prerelease. Version pre-release id-s exist only for pre-releaseversions and are null otherwise. Note that pre-relesae versions are not used by Jitsi's current versioning convention

        Returns:

        a String containing the version prerelease ID.

      • compareTo

         abstract 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.

        Parameters:
        version - the Version instance that we'd like to compare to this one.
        Returns:

        a negative integer, zero, or a positive integer as this object represents a version that is earlier, same, or more recent than the one referenced by the version parameter.

      • equals

         abstract boolean equals(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.

        Parameters:
        version - the version instance that we'd like to compare with this one.
        Returns:

        true if and only the version param references the same Jitsi version as this Version instance and false otherwise.

      • getApplicationName

         abstract String getApplicationName()

        Returns the name of the application that we're currently running. Default MUST be Jitsi.

        Returns:

        the name of the application that we're currently running. Default MUST be Jitsi.