All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.owasp.dependencycheck.data.nvd.json.Description Maven / Gradle / Ivy


package org.owasp.dependencycheck.data.nvd.json;

import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Description {

    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("description_data")
    @Expose
    private List descriptionData = new ArrayList();

    /**
     * 
     * (Required)
     * 
     */
    public List getDescriptionData() {
        return descriptionData;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setDescriptionData(List descriptionData) {
        this.descriptionData = descriptionData;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(Description.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
        sb.append("descriptionData");
        sb.append('=');
        sb.append(((this.descriptionData == null)?"":this.descriptionData));
        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.descriptionData == null)? 0 :this.descriptionData.hashCode()));
        return result;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof Description) == false) {
            return false;
        }
        Description rhs = ((Description) other);
        return ((this.descriptionData == rhs.descriptionData)||((this.descriptionData!= null)&&this.descriptionData.equals(rhs.descriptionData)));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy