java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.Config
All Implemented Interfaces:
Serializable

@NullMarked public class Config extends Object implements Serializable
Represents a configuration node from the NVD CVE API containing logical operators and nodes.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • operator

      private @Nullable Config.Operator operator
    • negate

      private @Nullable Boolean negate
    • nodes

      private List<Node> nodes
      (Required)
  • Constructor Details

    • Config

      public Config(List<Node> nodes)
      Constructor taking only the required set of JSON properties as the minimal constructor for a Config.
      Parameters:
      nodes - The nodes for the Config (required JSON property)
    • Config

      public Config(@Nullable Config.Operator operator, @Nullable Boolean negate, List<Node> nodes)
      Full constructor for Config.
      Parameters:
      operator - the logical operator (AND/OR)
      negate - whether to negate the configuration
      nodes - the list of configuration nodes
  • Method Details

    • getOperator

      public @Nullable Config.Operator getOperator()
      Returns:
      operator
    • getNegate

      public @Nullable Boolean getNegate()
      Returns:
      negate
    • getNodes

      public List<Node> getNodes()
      (Required)
      Returns:
      nodes
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object