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

org.touchbit.testrail4j.gson.model.TRResults Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show 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;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

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() {
        return new ToStringBuilder(this).append("results", results).toString();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(results).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof TRResults) == false) {
            return false;
        }
        TRResults rhs = ((TRResults) other);
        return new EqualsBuilder().append(results, rhs.results).isEquals();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy