package defpackage;

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

/* JADX INFO: renamed from: ᵗᵣᵝ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2513 implements ParameterizedType {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final Type f9712;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final Type[] f9713;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final Type f9714;

    public C2513(Type type, Type type2, Type... typeArr) {
        if (type2 instanceof Class) {
            Class<?> enclosingClass = ((Class) type2).getEnclosingClass();
            if (type != null) {
                if (enclosingClass == null || ᵥˈᵛ.ˁˌᵩ(type) != enclosingClass) {
                    C4468.m9510("unexpected owner type for ", type2, ": ", type);
                    throw null;
                }
            } else if (enclosingClass != null) {
                C4468.m9517("unexpected owner type for ", type2, ": null");
                throw null;
            }
        }
        this.f9712 = type != null ? AbstractC4534.m9580(type) : null;
        this.f9714 = AbstractC4534.m9580(type2);
        this.f9713 = (Type[]) typeArr.clone();
        int i = 0;
        while (true) {
            Type[] typeArr2 = this.f9713;
            if (i >= typeArr2.length) {
                return;
            }
            typeArr2[i].getClass();
            AbstractC4534.m9575(this.f9713[i]);
            Type[] typeArr3 = this.f9713;
            typeArr3[i] = AbstractC4534.m9580(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.f9713.clone();
    }

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

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

    public final int hashCode() {
        int iHashCode = Arrays.hashCode(this.f9713) ^ this.f9714.hashCode();
        Set set = AbstractC4534.f17254;
        Type type = this.f9712;
        return (type != null ? type.hashCode() : 0) ^ iHashCode;
    }

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