Class Version


  • public class Version
    extends Object
    Represents a version of a plugin.
    • Field Detail

      • ALPHA_VERSION

        public static final Version ALPHA_VERSION
        Represents an alpha version of a plugin.
      • BETA_VERSION

        public static final Version BETA_VERSION
        Represents a beta version of a plugin.
      • BUILD_VERSION

        public static final Version BUILD_VERSION
        Represents a build version of a plugin.
      • DEFAULT_VERSION

        public static final Version DEFAULT_VERSION
        Represents a default release version of a plugin.
    • Constructor Detail

      • Version

        public Version​(int major,
                       int minor,
                       int revision,
                       String build)
        Constructs a new version with the specified version numbers and build.
        Parameters:
        major - the major version number
        minor - the minor version number
        revision - the revision version number
        build - the build version
      • Version

        public Version​(int major,
                       int minor,
                       int revision)
        Constructs a new version with the specified version numbers.
        Parameters:
        major - the major version number
        minor - the minor version number
        revision - the revision version number
      • Version

        public Version​(int major,
                       int minor)
        Constructs a new version with the specified version numbers.
        Parameters:
        major - the major version number
        minor - the minor version number
      • Version

        public Version​(String version)
        Constructs a new version with the specified version.
        Parameters:
        version - the version to be parsed.
    • Method Detail

      • getMajor

        public int getMajor()
      • getMinor

        public int getMinor()
      • getRevision

        public int getRevision()
      • getBuild

        public String getBuild()