mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-23 15:42:34 -06:00
68 lines
3.6 KiB
Java
68 lines
3.6 KiB
Java
package kotlin;
|
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import io.sentry.protocol.SentryStackFrame;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* compiled from: LazyJVM.kt */
|
|
@Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a \u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004\u001a*\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004\u001a(\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0007\u001a\u00020\b2\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004¨\u0006\t"}, d2 = {"lazy", "Lkotlin/Lazy;", ExifInterface.GPS_DIRECTION_TRUE, "initializer", "Lkotlin/Function0;", SentryStackFrame.JsonKeys.LOCK, "", "mode", "Lkotlin/LazyThreadSafetyMode;", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = ConstraintLayout.LayoutParams.Table.LAYOUT_EDITOR_ABSOLUTEX, xs = "kotlin/LazyKt")
|
|
/* loaded from: classes3.dex */
|
|
public class LazyKt__LazyJVMKt {
|
|
|
|
/* compiled from: LazyJVM.kt */
|
|
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
public /* synthetic */ class WhenMappings {
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
|
|
|
static {
|
|
int[] iArr = new int[LazyThreadSafetyMode.values().length];
|
|
try {
|
|
iArr[LazyThreadSafetyMode.SYNCHRONIZED.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[LazyThreadSafetyMode.PUBLICATION.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
iArr[LazyThreadSafetyMode.NONE.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
$EnumSwitchMapping$0 = iArr;
|
|
}
|
|
}
|
|
|
|
public static final <T> Lazy<T> lazy(Function0<? extends T> initializer) {
|
|
Intrinsics.checkNotNullParameter(initializer, "initializer");
|
|
DefaultConstructorMarker defaultConstructorMarker = null;
|
|
return new SynchronizedLazyImpl(initializer, defaultConstructorMarker, 2, defaultConstructorMarker);
|
|
}
|
|
|
|
public static final <T> Lazy<T> lazy(LazyThreadSafetyMode mode, Function0<? extends T> initializer) {
|
|
Intrinsics.checkNotNullParameter(mode, "mode");
|
|
Intrinsics.checkNotNullParameter(initializer, "initializer");
|
|
int i = WhenMappings.$EnumSwitchMapping$0[mode.ordinal()];
|
|
int i2 = 2;
|
|
if (i == 1) {
|
|
DefaultConstructorMarker defaultConstructorMarker = null;
|
|
return new SynchronizedLazyImpl(initializer, defaultConstructorMarker, i2, defaultConstructorMarker);
|
|
}
|
|
if (i == 2) {
|
|
return new SafePublicationLazyImpl(initializer);
|
|
}
|
|
if (i == 3) {
|
|
return new UnsafeLazyImpl(initializer);
|
|
}
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
|
|
public static final <T> Lazy<T> lazy(Object obj, Function0<? extends T> initializer) {
|
|
Intrinsics.checkNotNullParameter(initializer, "initializer");
|
|
return new SynchronizedLazyImpl(initializer, obj);
|
|
}
|
|
}
|