package com.ss.android.ugc.aweme.ecommerce.address.dto;

import X.C5415BzH;
import X.C5416BzI;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.Objects;

public final class Region implements Parcelable {
    public static final Parcelable.Creator<Region> CREATOR = new C5415BzH();
    public static final C5416BzI LIZLLL = new C5416BzI((byte) 0);
    @c(LIZ = "name")
    public final String LIZ;
    @c(LIZ = "geoname_id")
    public final String LIZIZ;
    @c(LIZ = "code")
    public final String LIZJ;

    static {
        Covode.recordClassIndex(68026);
    }

    public Region() {
        this((String) null, (String) null, (String) null, 7);
    }

    private Object[] LIZ() {
        return new Object[]{this.LIZ, this.LIZIZ, this.LIZJ};
    }

    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Region)) {
            return false;
        }
        return M12.LIZ(((Region) obj).LIZ(), LIZ());
    }

    public final int hashCode() {
        return Objects.hash(LIZ());
    }

    public final String toString() {
        return M12.LIZ("Region:%s,%s,%s", LIZ());
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.LIZ);
        parcel.writeString(this.LIZIZ);
        parcel.writeString(this.LIZJ);
    }

    public Region(String str, String str2, String str3) {
        this.LIZ = str;
        this.LIZIZ = str2;
        this.LIZJ = str3;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ Region(String str, String str2, String str3, int i) {
        this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3);
    }
}
