package j;

import javax.annotation.Nullable;

/* JADX INFO: loaded from: classes.dex */
public final class b0<T> {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final g.d0 f6889a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    @Nullable
    public final T f6890b;

    public b0(g.d0 d0Var, @Nullable T t, @Nullable g.f0 f0Var) {
        this.f6889a = d0Var;
        this.f6890b = t;
    }

    public static <T> b0<T> b(@Nullable T t, g.d0 d0Var) {
        if (d0Var.a()) {
            return new b0<>(d0Var, t, null);
        }
        throw new IllegalArgumentException("rawResponse must be successful response");
    }

    public boolean a() {
        return this.f6889a.a();
    }

    public String toString() {
        return this.f6889a.toString();
    }
}
