package T1;

import java.util.Locale;

/* JADX INFO: loaded from: classes.dex */
public final class l {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f6531a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f6532b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final boolean f6533c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final int f6534d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final String f6535e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final int f6536f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final int f6537g;

    public l(int i, int i5, String str, String str2, String str3, boolean z8) {
        P6.g.e(str, "name");
        P6.g.e(str2, "type");
        this.f6531a = str;
        this.f6532b = str2;
        this.f6533c = z8;
        this.f6534d = i;
        this.f6535e = str3;
        this.f6536f = i5;
        String upperCase = str2.toUpperCase(Locale.ROOT);
        P6.g.d(upperCase, "toUpperCase(...)");
        this.f6537g = X6.e.O(upperCase, "INT") ? 3 : (X6.e.O(upperCase, "CHAR") || X6.e.O(upperCase, "CLOB") || X6.e.O(upperCase, "TEXT")) ? 2 : X6.e.O(upperCase, "BLOB") ? 5 : (X6.e.O(upperCase, "REAL") || X6.e.O(upperCase, "FLOA") || X6.e.O(upperCase, "DOUB")) ? 4 : 1;
    }

    public final boolean equals(Object obj) {
        if (this != obj) {
            if (obj instanceof l) {
                l lVar = (l) obj;
                if ((this.f6534d > 0) == (lVar.f6534d > 0) && P6.g.a(this.f6531a, lVar.f6531a) && this.f6533c == lVar.f6533c) {
                    int i = lVar.f6536f;
                    String str = lVar.f6535e;
                    int i5 = this.f6536f;
                    String str2 = this.f6535e;
                    if ((i5 != 1 || i != 2 || str2 == null || W2.g.l(str2, str)) && ((i5 != 2 || i != 1 || str == null || W2.g.l(str, str2)) && ((i5 == 0 || i5 != i || (str2 == null ? str == null : W2.g.l(str2, str))) && this.f6537g == lVar.f6537g))) {
                    }
                }
            }
            return false;
        }
        return true;
    }

    public final int hashCode() {
        return (((((this.f6531a.hashCode() * 31) + this.f6537g) * 31) + (this.f6533c ? 1231 : 1237)) * 31) + this.f6534d;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("\n            |Column {\n            |   name = '");
        sb.append(this.f6531a);
        sb.append("',\n            |   type = '");
        sb.append(this.f6532b);
        sb.append("',\n            |   affinity = '");
        sb.append(this.f6537g);
        sb.append("',\n            |   notNull = '");
        sb.append(this.f6533c);
        sb.append("',\n            |   primaryKeyPosition = '");
        sb.append(this.f6534d);
        sb.append("',\n            |   defaultValue = '");
        String str = this.f6535e;
        if (str == null) {
            str = "undefined";
        }
        sb.append(str);
        sb.append("'\n            |}\n        ");
        return X6.g.C(X6.g.D(sb.toString()));
    }
}
