- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
42 lines
1.2 KiB
Java
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());
|
|
}
|
|
}
|