java.lang.Object
io.github.jeremylong.openvulnerability.client.ghsa.AbstractPageable
io.github.jeremylong.openvulnerability.client.ghsa.CWEs
All Implemented Interfaces:
Serializable

public class CWEs extends AbstractPageable implements Serializable
Represents a collection of Common Weakness Enumerations (CWEs).
See Also:
  • Field Details

    • serialVersionUID

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

      private List<CWE> cwes
      The list of CWEs.
  • Constructor Details

    • CWEs

      public CWEs()
  • Method Details

    • getEdges

      public List<CWE> getEdges()
      Returns the list of CWEs.
      Returns:
      the CWEs
    • 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
    • addAllCwes

      boolean addAllCwes(List<CWE> c)
      Adds all CWEs from the given list.
      Parameters:
      c - the list of CWEs to add
      Returns:
      true if the list changed