package io.netty.handler.codec.xml;

import g.a.a.a.a;
import kotlinx.serialization.json.internal.AbstractJsonLexerKt;

/* JADX INFO: loaded from: classes.dex */
public class XmlDocumentStart {
    private final String encoding;
    private final String encodingScheme;
    private final boolean standalone;
    private final String version;

    public XmlDocumentStart(String str, String str2, boolean z2, String str3) {
        this.encoding = str;
        this.version = str2;
        this.standalone = z2;
        this.encodingScheme = str3;
    }

    public String encoding() {
        return this.encoding;
    }

    public String encodingScheme() {
        return this.encodingScheme;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        XmlDocumentStart xmlDocumentStart = (XmlDocumentStart) obj;
        if (this.standalone != xmlDocumentStart.standalone) {
            return false;
        }
        String str = this.encoding;
        if (str == null ? xmlDocumentStart.encoding != null : !str.equals(xmlDocumentStart.encoding)) {
            return false;
        }
        String str2 = this.encodingScheme;
        if (str2 == null ? xmlDocumentStart.encodingScheme != null : !str2.equals(xmlDocumentStart.encodingScheme)) {
            return false;
        }
        String str3 = this.version;
        String str4 = xmlDocumentStart.version;
        return str3 == null ? str4 == null : str3.equals(str4);
    }

    public int hashCode() {
        String str = this.encoding;
        int iHashCode = (str != null ? str.hashCode() : 0) * 31;
        String str2 = this.version;
        int iHashCode2 = (((iHashCode + (str2 != null ? str2.hashCode() : 0)) * 31) + (this.standalone ? 1 : 0)) * 31;
        String str3 = this.encodingScheme;
        return iHashCode2 + (str3 != null ? str3.hashCode() : 0);
    }

    public boolean standalone() {
        return this.standalone;
    }

    public String toString() {
        StringBuilder sbF = a.F("XmlDocumentStart{encoding='");
        a.r0(sbF, this.encoding, '\'', ", version='");
        a.r0(sbF, this.version, '\'', ", standalone=");
        sbF.append(this.standalone);
        sbF.append(", encodingScheme='");
        sbF.append(this.encodingScheme);
        sbF.append('\'');
        sbF.append(AbstractJsonLexerKt.END_OBJ);
        return sbF.toString();
    }

    public String version() {
        return this.version;
    }
}
