package F7;

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

/* JADX INFO: loaded from: classes.dex */
public final class a0 implements WildcardType {

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

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

    public a0(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();
            b0.d(typeArr[0]);
            this.f2696b = null;
            this.f2695a = typeArr[0];
            return;
        }
        typeArr2[0].getClass();
        b0.d(typeArr2[0]);
        if (typeArr[0] != Object.class) {
            throw new IllegalArgumentException();
        }
        this.f2696b = typeArr2[0];
        this.f2695a = Object.class;
    }

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

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

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

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

    public final String toString() {
        Type type = this.f2696b;
        if (type != null) {
            return "? super " + b0.t(type);
        }
        Type type2 = this.f2695a;
        if (type2 == Object.class) {
            return "?";
        }
        return "? extends " + b0.t(type2);
    }
}
