Enum Class Config.Operator
- All Implemented Interfaces:
ValueMappable,Serializable,Comparable<Config.Operator>,Constable
- Enclosing class:
- Config
Logical operators for configuration nodes.
-
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<Config.Operator>private final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.OperatorCreates an Operator from its string value.toString()value()Gets the string value of this operator.static Config.OperatorReturns the enum constant of this class with the specified name.static Config.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
Logical AND operator. -
OR
Logical OR operator.
-
-
Field Details
-
CONSTANTS
-
value
-
-
Constructor Details
-
Operator
-
-
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 an Operator from its string value.- Parameters:
value- the string value- Returns:
- the Operator enum constant
- Throws:
IllegalArgumentException- if the value is not valid
-
toString
- Overrides:
toStringin classEnum<Config.Operator>
-
value
Gets the string value of this operator.- Specified by:
valuein interfaceValueMappable- Returns:
- the string value
-