package p006b1;

import java.io.Serializable;
import p036l1.InterfaceC1421a;
import p039m1.C1468e;
import p039m1.C1470g;

/* renamed from: b1.h */
/* loaded from: classes.dex */
public final class C0480h<T> implements InterfaceC0473c<T>, Serializable {

    /* renamed from: d */
    public InterfaceC1421a<? extends T> f1686d;

    /* renamed from: e */
    public volatile Object f1687e;

    /* renamed from: f */
    public final Object f1688f;

    public C0480h(InterfaceC1421a<? extends T> interfaceC1421a, Object obj) {
        C1470g.m1292e(interfaceC1421a, "initializer");
        this.f1686d = interfaceC1421a;
        this.f1687e = C0482j.f1689a;
        this.f1688f = obj == null ? this : obj;
    }

    public /* synthetic */ C0480h(InterfaceC1421a interfaceC1421a, Object obj, int i, C1468e c1468e) {
        this(interfaceC1421a, (i & 2) != 0 ? null : obj);
    }

    /* renamed from: a */
    public boolean m3621a() {
        return this.f1687e != C0482j.f1689a;
    }

    @Override // p006b1.InterfaceC0473c
    public T getValue() {
        T t;
        T t2 = (T) this.f1687e;
        C0482j c0482j = C0482j.f1689a;
        if (t2 != c0482j) {
            return t2;
        }
        synchronized (this.f1688f) {
            t = (T) this.f1687e;
            if (t == c0482j) {
                InterfaceC1421a<? extends T> interfaceC1421a = this.f1686d;
                C1470g.m1295b(interfaceC1421a);
                t = interfaceC1421a.mo1280a();
                this.f1687e = t;
                this.f1686d = null;
            }
        }
        return t;
    }

    public String toString() {
        return m3621a() ? String.valueOf(getValue()) : "Lazy value not initialized yet.";
    }
}