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

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


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

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class CVEDataMeta {

    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("ID")
    @Expose
    private String id;
    /**
     * 
     * (Required)
     * 
     */
    @SerializedName("ASSIGNER")
    @Expose
    private String assigner;
    @SerializedName("STATE")
    @Expose
    private String state;

    /**
     * 
     * (Required)
     * 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 
     * (Required)
     * 
     */
    public String getAssigner() {
        return assigner;
    }

    /**
     * 
     * (Required)
     * 
     */
    public void setAssigner(String assigner) {
        this.assigner = assigner;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy