Files
rr3-apk/decompiled/sources/kotlin/UnsafeLazyImpl.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

42 lines
1.2 KiB
Java

package kotlin;
import java.io.Serializable;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes5.dex */
public final class UnsafeLazyImpl implements Lazy, Serializable {
public Object _value;
public Function0 initializer;
public UnsafeLazyImpl(Function0 initializer) {
Intrinsics.checkNotNullParameter(initializer, "initializer");
this.initializer = initializer;
this._value = UNINITIALIZED_VALUE.INSTANCE;
}
@Override // kotlin.Lazy
public Object getValue() {
if (this._value == UNINITIALIZED_VALUE.INSTANCE) {
Function0 function0 = this.initializer;
Intrinsics.checkNotNull(function0);
this._value = function0.invoke();
this.initializer = null;
}
return this._value;
}
@Override // kotlin.Lazy
public boolean isInitialized() {
return this._value != UNINITIALIZED_VALUE.INSTANCE;
}
public String toString() {
return isInitialized() ? String.valueOf(getValue()) : "Lazy value not initialized yet.";
}
private final Object writeReplace() {
return new InitializedLazyImpl(getValue());
}
}