what-the-bank/sources/com/google/android/gms/vision/zzc.java

34 lines
911 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.vision;
import android.util.SparseArray;
/* loaded from: classes2.dex */
public final class zzc {
private static final Object lock = new Object();
private static int zzau;
private SparseArray<Integer> zzav = new SparseArray<>();
private SparseArray<Integer> zzaw = new SparseArray<>();
public final int zzb(int i) {
synchronized (lock) {
Integer num = this.zzav.get(i);
if (num != null) {
return num.intValue();
}
int i2 = zzau;
zzau = i2 + 1;
this.zzav.append(i, Integer.valueOf(i2));
this.zzaw.append(i2, Integer.valueOf(i));
return i2;
}
}
public final int zzc(int i) {
int intValue;
synchronized (lock) {
intValue = this.zzaw.get(i).intValue();
}
return intValue;
}
}