what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzls.java

38 lines
1.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.firebase_ml;
import java.util.Iterator;
import java.util.Set;
/* loaded from: classes2.dex */
public final class zzls {
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzb(Set<?> set) {
Iterator<?> it = set.iterator();
int i = 0;
while (it.hasNext()) {
Object next = it.next();
i = ~(~(i + (next != null ? next.hashCode() : 0)));
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static boolean zza(Set<?> set, Object obj) {
if (set == obj) {
return true;
}
if (!(obj instanceof Set)) {
return false;
}
Set set2 = (Set) obj;
try {
if (set.size() == set2.size()) {
return set.containsAll(set2);
}
return false;
} catch (ClassCastException | NullPointerException unused) {
return false;
}
}
}