Package ca.phon.app

Class VersionInfo

java.lang.Object
ca.phon.app.VersionInfo
All Implemented Interfaces:
Comparable<VersionInfo>

public class VersionInfo extends Object implements Comparable<VersionInfo>
Methods for determining the version number of the application. Version information is read from the file: phon.build.properties which should be located in the root of the class loader.
  • Field Details

  • Constructor Details

    • VersionInfo

      public VersionInfo(String version)
  • Method Details

    • getInstance

      public static VersionInfo getInstance()
      Get the shared instance
    • isDevVersion

      public boolean isDevVersion()
    • check

      public boolean check(String vertest)
      Check if this version matches the given version test string. See Version.satisfies(java.lang.String)
      Parameters:
      vertest -
      Returns:
      true if this version matches given test string, false otherwise
    • getMajorVersion

      public int getMajorVersion()
    • getMinorVersion

      public int getMinorVersion()
    • getPatchVersion

      public int getPatchVersion()
    • getPreRelease

      public String getPreRelease()
    • getBuild

      public String getBuild()
    • getVersion

      public String getVersion()
      Returns full version text including prerelease and build values.
      Returns:
    • getVersionNoBuild

      public String getVersionNoBuild()
      Return the version w/o build
      Returns:
      version string w/o build
    • getNumericalVersion

      public String getNumericalVersion()
      Return the numerical version (major.minor.patch)
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(VersionInfo o)
      Specified by:
      compareTo in interface Comparable<VersionInfo>
    • compareTo

      public int compareTo(String version)