Class SADVersion


  • public class SADVersion
    extends Object
    A type safe SAD version enumeration.
    Author:
    Martin Lindström (martin.lindstrom@litsec.se)
    • Field Detail

      • VERSION_10

        public static final SADVersion VERSION_10
        SAD version 1.0.
    • Method Detail

      • valueOf

        public static SADVersion valueOf​(int majorVersion,
                                         int minorVersion)
        Gets the SADVersion given the major and minor version number.
        Parameters:
        majorVersion - major version number
        minorVersion - minor version number
        Returns:
        the SADVersion
      • valueOf

        public static SADVersion valueOf​(String version)
        Gets the SADVersion for a given version string, such as "1.0".
        Parameters:
        version - SAD version string
        Returns:
        SADVersion for the given string
      • getMajorVersion

        public int getMajorVersion()
        Gets the major version of the SAD version.
        Returns:
        the major version of the SAD version
      • getMinorVersion

        public int getMinorVersion()
        Gets the minor version of the SAD version.
        Returns:
        the minor version of the SAD version