package defpackage;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.Set;

/* renamed from: ⁱˉ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C5546 implements ParameterizedType {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final Type f20817;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final Type f20818;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final Type[] f20819;

    public C5546(Type type, Type type2, Type... typeArr) {
        if (type2 instanceof Class) {
            Class<?> enclosingClass = ((Class) type2).getEnclosingClass();
            if (type != null) {
                if (enclosingClass == null || ʼٴ.ᐧﾞ(type) != enclosingClass) {
                    C0190.m1426("unexpected owner type for ", type2, ": ", type);
                    throw null;
                }
            } else if (enclosingClass != null) {
                C0190.m1434("unexpected owner type for ", type2, ": null");
                throw null;
            }
        }
        this.f20818 = type != null ? AbstractC4978.m10415(type) : null;
        this.f20817 = AbstractC4978.m10415(type2);
        this.f20819 = (Type[]) typeArr.clone();
        int i = 0;
        while (true) {
            Type[] typeArr2 = this.f20819;
            if (i >= typeArr2.length) {
                return;
            }
            typeArr2[i].getClass();
            AbstractC4978.m10416(this.f20819[i]);
            Type[] typeArr3 = this.f20819;
            typeArr3[i] = AbstractC4978.m10415(typeArr3[i]);
            i++;
        }
    }

    public final boolean equals(Object obj) {
        return (obj instanceof ParameterizedType) && ʼٴ.ᵨᵳʝ(this, (ParameterizedType) obj);
    }

    @Override // java.lang.reflect.ParameterizedType
    public final Type[] getActualTypeArguments() {
        return (Type[]) this.f20819.clone();
    }

    @Override // java.lang.reflect.ParameterizedType
    public final Type getOwnerType() {
        return this.f20818;
    }

    @Override // java.lang.reflect.ParameterizedType
    public final Type getRawType() {
        return this.f20817;
    }

    public final int hashCode() {
        int iHashCode = Arrays.hashCode(this.f20819) ^ this.f20817.hashCode();
        Set set = AbstractC4978.f18493;
        Type type = this.f20818;
        return (type != null ? type.hashCode() : 0) ^ iHashCode;
    }

    public final String toString() {
        Type[] typeArr = this.f20819;
        StringBuilder sb = new StringBuilder((typeArr.length + 1) * 30);
        sb.append(AbstractC4978.m10414(this.f20817));
        if (typeArr.length == 0) {
            return sb.toString();
        }
        sb.append("<");
        sb.append(AbstractC4978.m10414(typeArr[0]));
        for (int i = 1; i < typeArr.length; i++) {
            sb.append(", ");
            sb.append(AbstractC4978.m10414(typeArr[i]));
        }
        sb.append(">");
        return sb.toString();
    }
}
