org.touchbit.testrail4j.jackson2.model.TRResults Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson2-api-model Show documentation
Show all versions of jackson2-api-model Show documentation
Jackson2 annotation models for TestRail API
The newest version!
package org.touchbit.testrail4j.jackson2.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"results"
})
public class TRResults {
/**
*
* (Required)
*
*/
@JsonProperty("results")
private List results = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public TRResults() {
}
/**
*
* @param results
*/
public TRResults(List results) {
super();
this.results = results;
}
/**
*
* (Required)
*
*/
@JsonProperty("results")
public List getResults() {
return results;
}
/**
*
* (Required)
*
*/
@JsonProperty("results")
public void setResults(List results) {
this.results = results;
}
public TRResults withResults(List results) {
this.results = results;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public TRResults withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(TRResults.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("results");
sb.append('=');
sb.append(((this.results == null)?"":this.results));
sb.append(',');
sb.append("additionalProperties");
sb.append('=');
sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
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.results == null)? 0 :this.results.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TRResults) == false) {
return false;
}
TRResults rhs = ((TRResults) other);
return (((this.results == rhs.results)||((this.results!= null)&&this.results.equals(rhs.results)))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))));
}
}