2021-11-08 18:25:28 +00:00
|
|
|
package d0;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.z.d.m;
|
2021-06-27 20:44:35 +00:00
|
|
|
import kotlin.Lazy;
|
|
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: LazyJVM.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public class g {
|
|
|
|
public static final <T> Lazy<T> lazy(i iVar, Function0<? extends T> function0) {
|
|
|
|
m.checkNotNullParameter(iVar, "mode");
|
|
|
|
m.checkNotNullParameter(function0, "initializer");
|
|
|
|
int ordinal = iVar.ordinal();
|
|
|
|
if (ordinal == 0) {
|
|
|
|
return new n(function0, null, 2, null);
|
|
|
|
}
|
|
|
|
if (ordinal == 1) {
|
|
|
|
return new m(function0);
|
|
|
|
}
|
|
|
|
if (ordinal == 2) {
|
|
|
|
return new s(function0);
|
|
|
|
}
|
|
|
|
throw new NoWhenBranchMatchedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final <T> Lazy<T> lazy(Function0<? extends T> function0) {
|
|
|
|
m.checkNotNullParameter(function0, "initializer");
|
|
|
|
return new n(function0, null, 2, null);
|
|
|
|
}
|
|
|
|
}
|