what-the-bank/sources/com/google/android/gms/internal/clearcut/zzfy.java

117 lines
3.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.clearcut;
import java.nio.charset.Charset;
import java.util.Arrays;
import org.bouncycastle.i18n.LocalizedMessage;
/* loaded from: classes2.dex */
public final class zzfy {
private static final Charset UTF_8 = Charset.forName("UTF-8");
private static final Charset ISO_8859_1 = Charset.forName(LocalizedMessage.DEFAULT_ENCODING);
public static final Object zzrr = new Object();
public static boolean zza(byte[][] bArr, byte[][] bArr2) {
int length = bArr == null ? 0 : bArr.length;
int length2 = bArr2 == null ? 0 : bArr2.length;
int i = 0;
int i2 = 0;
while (true) {
if (i2 >= length || bArr[i2] != null) {
while (i < length2 && bArr2[i] == null) {
i++;
}
boolean z = i2 >= length;
boolean z2 = i >= length2;
if (z && z2) {
return true;
}
if (z != z2 || !Arrays.equals(bArr[i2], bArr2[i])) {
return false;
}
i2++;
i++;
} else {
i2++;
}
}
}
public static void zza(zzfu zzfuVar, zzfu zzfuVar2) {
if (zzfuVar.zzrj != null) {
zzfuVar2.zzrj = (zzfw) zzfuVar.zzrj.clone();
}
}
public static int zza(byte[][] bArr) {
int length = bArr == null ? 0 : bArr.length;
int i = 0;
for (int i2 = 0; i2 < length; i2++) {
byte[] bArr2 = bArr[i2];
if (bArr2 != null) {
i = (i * 31) + Arrays.hashCode(bArr2);
}
}
return i;
}
public static int hashCode(Object[] objArr) {
int length = objArr == null ? 0 : objArr.length;
int i = 0;
for (int i2 = 0; i2 < length; i2++) {
Object obj = objArr[i2];
if (obj != null) {
i = (i * 31) + obj.hashCode();
}
}
return i;
}
public static int hashCode(long[] jArr) {
if (jArr == null || jArr.length == 0) {
return 0;
}
return Arrays.hashCode(jArr);
}
public static int hashCode(int[] iArr) {
if (iArr == null || iArr.length == 0) {
return 0;
}
return Arrays.hashCode(iArr);
}
public static boolean equals(Object[] objArr, Object[] objArr2) {
int length = objArr == null ? 0 : objArr.length;
int length2 = objArr2 == null ? 0 : objArr2.length;
int i = 0;
int i2 = 0;
while (true) {
if (i2 >= length || objArr[i2] != null) {
while (i < length2 && objArr2[i] == null) {
i++;
}
boolean z = i2 >= length;
boolean z2 = i >= length2;
if (z && z2) {
return true;
}
if (z != z2 || !objArr[i2].equals(objArr2[i])) {
return false;
}
i2++;
i++;
} else {
i2++;
}
}
}
public static boolean equals(long[] jArr, long[] jArr2) {
return (jArr == null || jArr.length == 0) ? jArr2 == null || jArr2.length == 0 : Arrays.equals(jArr, jArr2);
}
public static boolean equals(int[] iArr, int[] iArr2) {
return (iArr == null || iArr.length == 0) ? iArr2 == null || iArr2.length == 0 : Arrays.equals(iArr, iArr2);
}
}