Enum Class Config.Operator

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

public static enum Config.Operator extends Enum<Config.Operator> implements ValueMappable
Logical operators for configuration nodes.
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • Operator

      private Operator(String value)
  • Method Details

    • values

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

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

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