package e;

import java.io.Serializable;

/* JADX INFO: loaded from: classes.dex */
public final class h<T> implements b<T>, Serializable {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public e.s.b.a<? extends T> f5950b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public volatile Object f5951c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Object f5952d;

    public h(e.s.b.a aVar, Object obj, int i2) {
        int i3 = i2 & 2;
        e.s.c.k.e(aVar, "initializer");
        this.f5950b = aVar;
        this.f5951c = j.f5954a;
        this.f5952d = this;
    }

    @Override // e.b
    public T getValue() {
        T tA;
        T t = (T) this.f5951c;
        j jVar = j.f5954a;
        if (t != jVar) {
            return t;
        }
        synchronized (this.f5952d) {
            tA = (T) this.f5951c;
            if (tA == jVar) {
                e.s.b.a<? extends T> aVar = this.f5950b;
                e.s.c.k.c(aVar);
                tA = aVar.a();
                this.f5951c = tA;
                this.f5950b = null;
            }
        }
        return tA;
    }

    public String toString() {
        return this.f5951c != j.f5954a ? String.valueOf(getValue()) : "Lazy value not initialized yet.";
    }
}
