//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package cn.com.taiji.dataService.utils;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

public class HttpByteReturn {
    public Integer responseHttpStatus;
    public InputStream response;
    public Map<String, String> respHttpHeaderMap = new HashMap();

    public HttpByteReturn() {
    }

    public Integer getResponseHttpStatus() {
        return this.responseHttpStatus;
    }

    public InputStream getResponse() {
        return this.response;
    }

    public Map<String, String> getRespHttpHeaderMap() {
        return this.respHttpHeaderMap;
    }

    public HttpByteReturn setResponseHttpStatus(Integer responseHttpStatus) {
        this.responseHttpStatus = responseHttpStatus;
        return this;
    }

    public HttpByteReturn setResponse(InputStream response) {
        this.response = response;
        return this;
    }

    public HttpByteReturn setRespHttpHeaderMap(Map<String, String> respHttpHeaderMap) {
        this.respHttpHeaderMap = respHttpHeaderMap;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof HttpByteReturn)) {
            return false;
        } else {
            HttpByteReturn other = (HttpByteReturn)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$responseHttpStatus = this.getResponseHttpStatus();
                    Object other$responseHttpStatus = other.getResponseHttpStatus();
                    if (this$responseHttpStatus == null) {
                        if (other$responseHttpStatus == null) {
                            break label47;
                        }
                    } else if (this$responseHttpStatus.equals(other$responseHttpStatus)) {
                        break label47;
                    }

                    return false;
                }

                Object this$response = this.getResponse();
                Object other$response = other.getResponse();
                if (this$response == null) {
                    if (other$response != null) {
                        return false;
                    }
                } else if (!this$response.equals(other$response)) {
                    return false;
                }

                Object this$respHttpHeaderMap = this.getRespHttpHeaderMap();
                Object other$respHttpHeaderMap = other.getRespHttpHeaderMap();
                if (this$respHttpHeaderMap == null) {
                    if (other$respHttpHeaderMap != null) {
                        return false;
                    }
                } else if (!this$respHttpHeaderMap.equals(other$respHttpHeaderMap)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof HttpByteReturn;
    }

    public int hashCode() {
        //int PRIME = true;
        int result = 1;
        Object $responseHttpStatus = this.getResponseHttpStatus();
        result = result * 59 + ($responseHttpStatus == null ? 43 : $responseHttpStatus.hashCode());
        Object $response = this.getResponse();
        result = result * 59 + ($response == null ? 43 : $response.hashCode());
        Object $respHttpHeaderMap = this.getRespHttpHeaderMap();
        result = result * 59 + ($respHttpHeaderMap == null ? 43 : $respHttpHeaderMap.hashCode());
        return result;
    }

    public String toString() {
        return "HttpReturn(responseHttpStatus=" + this.getResponseHttpStatus() + ", response=" + this.getResponse() + ", respHttpHeaderMap=" + this.getRespHttpHeaderMap() + ")";
    }
}

