Enum Class Node.Operator
- All Implemented Interfaces:
ValueMappable,Serializable,Comparable<Node.Operator>,Constable
- Enclosing class:
- Node
Logical operators for combining CPE matches.
-
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<Node.Operator>private final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Node.OperatorReturns the enum constant for the given value.toString()value()Returns the value of this operator.static Node.OperatorReturns the enum constant of this class with the specified name.static Node.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
Returns the enum constant for the given value.- Parameters:
value- the value- Returns:
- the operator
- Throws:
IllegalArgumentException- if no constant exists for the value
-
toString
- Overrides:
toStringin classEnum<Node.Operator>
-
value
Returns the value of this operator.- Specified by:
valuein interfaceValueMappable- Returns:
- the value
-