org.owasp.dependencycheck.data.nvd.json.Product__1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-check-core Show documentation
Show all versions of dependency-check-core Show documentation
dependency-check-core is the engine and reporting tool used to identify and report if there are any known, publicly disclosed vulnerabilities in the scanned project's dependencies. The engine extracts meta-data from the dependencies and uses this to do fuzzy key-word matching against the Common Platfrom Enumeration (CPE), if any CPE identifiers are found the associated Common Vulnerability and Exposure (CVE) entries are added to the generated report.
package org.owasp.dependencycheck.data.nvd.json;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Product__1 {
/**
*
* (Required)
*
*/
@SerializedName("product_name")
@Expose
private String productName;
/**
*
* (Required)
*
*/
@SerializedName("version")
@Expose
private Version version;
/**
*
* (Required)
*
*/
public String getProductName() {
return productName;
}
/**
*
* (Required)
*
*/
public void setProductName(String productName) {
this.productName = productName;
}
/**
*
* (Required)
*
*/
public Version getVersion() {
return version;
}
/**
*
* (Required)
*
*/
public void setVersion(Version version) {
this.version = version;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Product__1 .class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("productName");
sb.append('=');
sb.append(((this.productName == null)?"":this.productName));
sb.append(',');
sb.append("version");
sb.append('=');
sb.append(((this.version == null)?"":this.version));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.version == null)? 0 :this.version.hashCode()));
result = ((result* 31)+((this.productName == null)? 0 :this.productName.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Product__1) == false) {
return false;
}
Product__1 rhs = ((Product__1) other);
return (((this.version == rhs.version)||((this.version!= null)&&this.version.equals(rhs.version)))&&((this.productName == rhs.productName)||((this.productName!= null)&&this.productName.equals(rhs.productName))));
}
}