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 XmlAttribute {
    private final String name;
    private final String namespace;
    private final String prefix;
    private final String type;
    private final String value;

    public XmlAttribute(String str, String str2, String str3, String str4, String str5) {
        this.type = str;
        this.name = str2;
        this.prefix = str3;
        this.namespace = str4;
        this.value = str5;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        XmlAttribute xmlAttribute = (XmlAttribute) obj;
        if (!this.name.equals(xmlAttribute.name)) {
            return false;
        }
        String str = this.namespace;
        if (str == null ? xmlAttribute.namespace != null : !str.equals(xmlAttribute.namespace)) {
            return false;
        }
        String str2 = this.prefix;
        if (str2 == null ? xmlAttribute.prefix != null : !str2.equals(xmlAttribute.prefix)) {
            return false;
        }
        String str3 = this.type;
        if (str3 == null ? xmlAttribute.type != null : !str3.equals(xmlAttribute.type)) {
            return false;
        }
        String str4 = this.value;
        String str5 = xmlAttribute.value;
        return str4 == null ? str5 == null : str4.equals(str5);
    }

    public int hashCode() {
        String str = this.type;
        int iH = a.H(this.name, (str != null ? str.hashCode() : 0) * 31, 31);
        String str2 = this.prefix;
        int iHashCode = (iH + (str2 != null ? str2.hashCode() : 0)) * 31;
        String str3 = this.namespace;
        int iHashCode2 = (iHashCode + (str3 != null ? str3.hashCode() : 0)) * 31;
        String str4 = this.value;
        return iHashCode2 + (str4 != null ? str4.hashCode() : 0);
    }

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

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

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

    public String toString() {
        StringBuilder sbF = a.F("XmlAttribute{type='");
        a.r0(sbF, this.type, '\'', ", name='");
        a.r0(sbF, this.name, '\'', ", prefix='");
        a.r0(sbF, this.prefix, '\'', ", namespace='");
        a.r0(sbF, this.namespace, '\'', ", value='");
        sbF.append(this.value);
        sbF.append('\'');
        sbF.append(AbstractJsonLexerKt.END_OBJ);
        return sbF.toString();
    }

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

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