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

io.github.algomaster99.terminator.commons.cyclonedx.Affect Maven / Gradle / Ivy


package io.github.algomaster99.terminator.commons.cyclonedx;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "ref",
    "versions"
})
@Generated("jsonschema2pojo")
public class Affect {

    /**
     * Reference
     * 

* References a component or service by the objects bom-ref * (Required) * */ @JsonProperty("ref") @JsonPropertyDescription("References a component or service by the objects bom-ref") private Object ref; /** * Versions *

* Zero or more individual versions or range of versions. * */ @JsonProperty("versions") @JsonPropertyDescription("Zero or more individual versions or range of versions.") private List versions = new ArrayList(); /** * Reference *

* References a component or service by the objects bom-ref * (Required) * */ @JsonProperty("ref") public Object getRef() { return ref; } /** * Reference *

* References a component or service by the objects bom-ref * (Required) * */ @JsonProperty("ref") public void setRef(Object ref) { this.ref = ref; } /** * Versions *

* Zero or more individual versions or range of versions. * */ @JsonProperty("versions") public List getVersions() { return versions; } /** * Versions *

* Zero or more individual versions or range of versions. * */ @JsonProperty("versions") public void setVersions(List versions) { this.versions = versions; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(Affect.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("ref"); sb.append('='); sb.append(((this.ref == null)?"":this.ref)); sb.append(','); sb.append("versions"); sb.append('='); sb.append(((this.versions == null)?"":this.versions)); 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.versions == null)? 0 :this.versions.hashCode())); result = ((result* 31)+((this.ref == null)? 0 :this.ref.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Affect) == false) { return false; } Affect rhs = ((Affect) other); return (((this.versions == rhs.versions)||((this.versions!= null)&&this.versions.equals(rhs.versions)))&&((this.ref == rhs.ref)||((this.ref!= null)&&this.ref.equals(rhs.ref)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy