Class Version

    • Field Detail

      • SNAPSHOT

        public static final Version SNAPSHOT
    • Constructor Detail

      • Version

        public Version​(int[] components,
                       String qualifier)
        Constructor.
        Parameters:
        components - the numeric components of the version; may be null for SNAPSHOT version
        qualifier - the qualifier
      • Version

        public Version​(String versionString)
                throws ParseException
        Constructor that parses the version from a string. The version must have the following format:
         integer ( "." integer )* ( "-" qualifier )?
         
        Parameters:
        versionString - the string representation of the version
        Throws:
        ParseException - if the version is not in the correct format