package p6;

import java.lang.reflect.Type;
import java.lang.reflect.WildcardType;
import o6.AbstractC1380C;

/* JADX INFO: renamed from: p6.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1438d implements WildcardType {

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

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

    public C1438d(Type[] typeArr, Type[] typeArr2) {
        if (typeArr2.length > 1) {
            throw new IllegalArgumentException();
        }
        if (typeArr.length != 1) {
            throw new IllegalArgumentException();
        }
        if (typeArr2.length != 1) {
            typeArr[0].getClass();
            AbstractC1439e.b(typeArr[0]);
            this.f16149b = null;
            this.f16148a = AbstractC1439e.a(typeArr[0]);
            return;
        }
        typeArr2[0].getClass();
        AbstractC1439e.b(typeArr2[0]);
        if (typeArr[0] != Object.class) {
            throw new IllegalArgumentException();
        }
        this.f16149b = AbstractC1439e.a(typeArr2[0]);
        this.f16148a = Object.class;
    }

    public final boolean equals(Object obj) {
        return (obj instanceof WildcardType) && AbstractC1380C.b(this, (WildcardType) obj);
    }

    @Override // java.lang.reflect.WildcardType
    public final Type[] getLowerBounds() {
        Type type = this.f16149b;
        return type != null ? new Type[]{type} : AbstractC1439e.f16151b;
    }

    @Override // java.lang.reflect.WildcardType
    public final Type[] getUpperBounds() {
        return new Type[]{this.f16148a};
    }

    public final int hashCode() {
        Type type = this.f16149b;
        return (type != null ? type.hashCode() + 31 : 1) ^ (this.f16148a.hashCode() + 31);
    }

    public final String toString() {
        Type type = this.f16149b;
        if (type != null) {
            return "? super " + AbstractC1439e.i(type);
        }
        Type type2 = this.f16148a;
        if (type2 == Object.class) {
            return "?";
        }
        return "? extends " + AbstractC1439e.i(type2);
    }
}
