mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 09:27:16 +01:00
40 lines
2.3 KiB
Java
40 lines
2.3 KiB
Java
package androidx.compose.runtime;
|
|
|
|
import com.amazon.alexa.ra.core.data.fragments.SmartFragmentContent;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.functions.Function0;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a\u0010\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\u0000\u001a*\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u00062\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00030\bH\u0080\b\u0082\u0002\b\n\u0006\b\u0000\u001a\u0002\u0010\u0001\u001a\u0010\u0010\t\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\u0000\u001a*\u0010\n\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u00062\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00030\bH\u0080\b\u0082\u0002\b\n\u0006\b\u0000\u001a\u0002\u0010\u0001\u001a\u001c\u0010\n\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0006H\u0080\b\u0082\u0002\b\n\u0006\b\u0000\u001a\u0002\u0010\u0001¨\u0006\u000b"}, d2 = {"throwIllegalArgumentException", "", "message", "", "requirePrecondition", "value", "", "lazyMessage", "Lkotlin/Function0;", "throwIllegalStateException", "checkPrecondition", SmartFragmentContent.RUNTIME}, k = 2, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
public final class PreconditionsKt {
|
|
public static final void checkPrecondition(boolean z, @NotNull Function0<String> function0) {
|
|
if (z) {
|
|
return;
|
|
}
|
|
throwIllegalStateException(function0.invoke());
|
|
}
|
|
|
|
public static final void requirePrecondition(boolean z, @NotNull Function0<String> function0) {
|
|
if (z) {
|
|
return;
|
|
}
|
|
throwIllegalArgumentException(function0.invoke());
|
|
}
|
|
|
|
public static final void throwIllegalArgumentException(@NotNull String str) {
|
|
throw new IllegalArgumentException(str);
|
|
}
|
|
|
|
public static final void throwIllegalStateException(@NotNull String str) {
|
|
throw new IllegalStateException(str);
|
|
}
|
|
|
|
public static final void checkPrecondition(boolean z) {
|
|
if (z) {
|
|
return;
|
|
}
|
|
throwIllegalStateException("Check failed.");
|
|
}
|
|
}
|