Enum Class CvssV2Data.Version

java.lang.Object
java.lang.Enum<CvssV2Data.Version>
io.github.jeremylong.openvulnerability.client.nvd.CvssV2Data.Version
All Implemented Interfaces:
ValueMappable, Serializable, Comparable<CvssV2Data.Version>, Constable
Enclosing class:
CvssV2Data

public static enum CvssV2Data.Version extends Enum<CvssV2Data.Version> implements ValueMappable
CVSS Version
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • Version

      private Version(String value)
  • Method Details

    • values

      public static CvssV2Data.Version[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CvssV2Data.Version valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromValue

      public static CvssV2Data.Version fromValue(String value)
      Creates a Version from its string value.
      Parameters:
      value - the string value
      Returns:
      the Version enum constant
      Throws:
      IllegalArgumentException - if the value is not valid
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CvssV2Data.Version>
    • value

      public String value()
      Gets the string value of this version.
      Specified by:
      value in interface ValueMappable
      Returns:
      the string value