Files
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

75 lines
1.9 KiB
Java

package com.mbridge.msdk.playercommon.exoplayer2.util;
import android.os.Looper;
import android.text.TextUtils;
import androidx.annotation.Nullable;
/* loaded from: classes4.dex */
public final class Assertions {
private Assertions() {
}
public static void checkArgument(boolean z) {
if (!z) {
throw new IllegalArgumentException();
}
}
public static void checkArgument(boolean z, Object obj) {
if (!z) {
throw new IllegalArgumentException(String.valueOf(obj));
}
}
public static int checkIndex(int i, int i2, int i3) {
if (i < i2 || i >= i3) {
throw new IndexOutOfBoundsException();
}
return i;
}
public static void checkState(boolean z) {
if (!z) {
throw new IllegalStateException();
}
}
public static void checkState(boolean z, Object obj) {
if (!z) {
throw new IllegalStateException(String.valueOf(obj));
}
}
public static <T> T checkNotNull(@Nullable T t) {
t.getClass();
return t;
}
public static <T> T checkNotNull(@Nullable T t, Object obj) {
if (t != null) {
return t;
}
throw new NullPointerException(String.valueOf(obj));
}
public static String checkNotEmpty(@Nullable String str) {
if (TextUtils.isEmpty(str)) {
throw new IllegalArgumentException();
}
return str;
}
public static String checkNotEmpty(@Nullable String str, Object obj) {
if (TextUtils.isEmpty(str)) {
throw new IllegalArgumentException(String.valueOf(obj));
}
return str;
}
public static void checkMainThread() {
if (Looper.myLooper() != Looper.getMainLooper()) {
throw new IllegalStateException("Not in applications main thread");
}
}
}