Enum Class CvssV4Data.Version
java.lang.Object
java.lang.Enum<CvssV4Data.Version>
io.github.jeremylong.openvulnerability.client.nvd.CvssV4Data.Version
- All Implemented Interfaces:
ValueMappable,Serializable,Comparable<CvssV4Data.Version>,Constable
- Enclosing class:
- CvssV4Data
CVSS Version
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface io.github.jeremylong.openvulnerability.client.nvd.ValueMappable
ValueMappable.Lookup<E extends Enum<E> & ValueMappable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ValueMappable.Lookup<CvssV4Data.Version>private final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CvssV4Data.VersionCreates a Version from its string value.toString()value()Gets the string value of this version.static CvssV4Data.VersionReturns the enum constant of this class with the specified name.static CvssV4Data.Version[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
_4_0
CVSS version 4.0.
-
-
Field Details
-
CONSTANTS
-
value
-
-
Constructor Details
-
Version
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromValue
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
- Overrides:
toStringin classEnum<CvssV4Data.Version>
-
value
Gets the string value of this version.- Specified by:
valuein interfaceValueMappable- Returns:
- the string value
-