
org.touchbit.testrail4j.gson.model.TRResults Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gson-api-model Show documentation
Show all versions of gson-api-model Show documentation
Gson annotation models for TestRail API
The newest version!
package org.touchbit.testrail4j.gson.model;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class TRResults {
/**
*
* (Required)
*
*/
@SerializedName("results")
@Expose
private List results = new ArrayList();
/**
* No args constructor for use in serialization
*
*/
public TRResults() {
}
/**
*
* @param results
*/
public TRResults(List results) {
super();
this.results = results;
}
/**
*
* (Required)
*
*/
public List getResults() {
return results;
}
/**
*
* (Required)
*
*/
public void setResults(List results) {
this.results = results;
}
public TRResults withResults(List results) {
this.results = results;
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(',');
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()));
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)));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy