Enum Class Node.Operator

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

public static enum Node.Operator extends Enum<Node.Operator> implements ValueMappable
Logical operators for combining CPE matches.
  • Enum Constant Details

    • AND

      public static final Node.Operator AND
      Logical AND operator.
    • OR

      public static final Node.Operator OR
      Logical OR operator.
  • Field Details

  • Constructor Details

    • Operator

      private Operator(String value)
  • Method Details

    • values

      public static Node.Operator[] 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 Node.Operator 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 Node.Operator fromValue(String value)
      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

      public String toString()
      Overrides:
      toString in class Enum<Node.Operator>
    • value

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