2021-10-19 23:48:27 +00:00
|
|
|
package c0;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-10-19 23:48:27 +00:00
|
|
|
import c0.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 */
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|