Files
rr3-apk/decompiled/sources/com/google/android/gms/internal/ads/zzfun.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

106 lines
3.2 KiB
Java

package com.google.android.gms.internal.ads;
/* loaded from: classes3.dex */
public final class zzfun {
public static int zza(int i, int i2, String str) {
String zzb;
if (i >= 0 && i < i2) {
return i;
}
if (i < 0) {
zzb = zzfve.zzb("%s (%s) must not be negative", "index", Integer.valueOf(i));
} else {
if (i2 < 0) {
throw new IllegalArgumentException("negative size: " + i2);
}
zzb = zzfve.zzb("%s (%s) must be less than size (%s)", "index", Integer.valueOf(i), Integer.valueOf(i2));
}
throw new IndexOutOfBoundsException(zzb);
}
public static int zzb(int i, int i2, String str) {
if (i < 0 || i > i2) {
throw new IndexOutOfBoundsException(zzn(i, i2, "index"));
}
return i;
}
public static Object zzc(Object obj, Object obj2) {
if (obj != null) {
return obj;
}
throw new NullPointerException((String) obj2);
}
public static Object zzd(Object obj, String str, Object obj2) {
if (obj != null) {
return obj;
}
throw new NullPointerException(zzfve.zzb(str, obj2));
}
public static void zze(boolean z) {
if (!z) {
throw new IllegalArgumentException();
}
}
public static void zzf(boolean z, Object obj) {
if (!z) {
throw new IllegalArgumentException((String) obj);
}
}
public static void zzg(boolean z, String str, char c) {
if (!z) {
throw new IllegalArgumentException(zzfve.zzb(str, Character.valueOf(c)));
}
}
public static void zzh(boolean z, String str, long j) {
if (!z) {
throw new IllegalArgumentException(zzfve.zzb(str, Long.valueOf(j)));
}
}
public static void zzi(boolean z, String str, Object obj) {
if (!z) {
throw new IllegalArgumentException(zzfve.zzb(str, obj));
}
}
public static void zzj(boolean z, String str, int i, int i2) {
if (!z) {
throw new IllegalArgumentException(zzfve.zzb(str, Integer.valueOf(i), Integer.valueOf(i2)));
}
}
public static void zzk(int i, int i2, int i3) {
if (i < 0 || i2 < i || i2 > i3) {
throw new IndexOutOfBoundsException((i < 0 || i > i3) ? zzn(i, i3, "start index") : (i2 < 0 || i2 > i3) ? zzn(i2, i3, "end index") : zzfve.zzb("end index (%s) must not be less than start index (%s)", Integer.valueOf(i2), Integer.valueOf(i)));
}
}
public static void zzl(boolean z) {
if (!z) {
throw new IllegalStateException();
}
}
public static void zzm(boolean z, Object obj) {
if (!z) {
throw new IllegalStateException((String) obj);
}
}
private static String zzn(int i, int i2, String str) {
if (i < 0) {
return zzfve.zzb("%s (%s) must not be negative", str, Integer.valueOf(i));
}
if (i2 >= 0) {
return zzfve.zzb("%s (%s) must not be greater than size (%s)", str, Integer.valueOf(i), Integer.valueOf(i2));
}
throw new IllegalArgumentException("negative size: " + i2);
}
}