io.github.algomaster99.terminator.commons.cyclonedx.Callstack 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.JsonPropertyOrder;
/**
* Evidence of the components use through the callstack.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"frames"
})
@Generated("jsonschema2pojo")
public class Callstack {
/**
* Methods
*
*
*
*/
@JsonProperty("frames")
private List frames = new ArrayList();
/**
* Methods
*
*
*
*/
@JsonProperty("frames")
public List getFrames() {
return frames;
}
/**
* Methods
*
*
*
*/
@JsonProperty("frames")
public void setFrames(List frames) {
this.frames = frames;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Callstack.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("frames");
sb.append('=');
sb.append(((this.frames == null)?"":this.frames));
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.frames == null)? 0 :this.frames.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Callstack) == false) {
return false;
}
Callstack rhs = ((Callstack) other);
return ((this.frames == rhs.frames)||((this.frames!= null)&&this.frames.equals(rhs.frames)));
}
}