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

public class Package extends Object implements Serializable
An individual package.
 type SecurityAdvisoryPackage
 
See Also:
  • Field Details

    • serialVersionUID

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

      private String ecosystem
      The ecosystem the package belongs to.
    • name

      private String name
      The package name.
  • Constructor Details

    • Package

      public Package()
  • Method Details

    • getEcosystem

      public String getEcosystem()
      The ecosystem the package belongs to, e.g. RUBYGEMS, NPM.
      Returns:
      The ecosystem the package belongs.
    • getName

      public String getName()
      The package name.
      Returns:
      the package name.
    • 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