what-the-bank/sources/com/google/firebase/ml/vision/barcode/FirebaseVisionBarcodeDetect...

76 lines
2.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.ml.vision.barcode;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.internal.firebase_ml.zzqs;
import com.google.android.gms.internal.firebase_ml.zzsk;
import com.google.android.gms.internal.firebase_ml.zzue;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes2.dex */
public class FirebaseVisionBarcodeDetectorOptions {
private static final Map<Integer, zzsk> zzavq;
private final int zzavy;
private FirebaseVisionBarcodeDetectorOptions(int i) {
this.zzavy = i;
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
return (obj instanceof FirebaseVisionBarcodeDetectorOptions) && this.zzavy == ((FirebaseVisionBarcodeDetectorOptions) obj).zzavy;
}
/* loaded from: classes2.dex */
public static class Builder {
private int zzavz = 0;
public FirebaseVisionBarcodeDetectorOptions build() {
return new FirebaseVisionBarcodeDetectorOptions(this.zzavz);
}
}
public int hashCode() {
return Objects.hashCode(Integer.valueOf(this.zzavy));
}
public final zzqs.zza zzng() {
ArrayList arrayList = new ArrayList();
if (this.zzavy == 0) {
arrayList.addAll(zzavq.values());
} else {
for (Map.Entry<Integer, zzsk> entry : zzavq.entrySet()) {
if ((this.zzavy & entry.getKey().intValue()) != 0) {
arrayList.add(entry.getValue());
}
}
}
return (zzqs.zza) ((zzue) zzqs.zza.zzof().zzp(arrayList).zzrj());
}
static {
HashMap hashMap = new HashMap();
zzavq = hashMap;
hashMap.put(1, zzsk.CODE_128);
hashMap.put(2, zzsk.CODE_39);
hashMap.put(4, zzsk.CODE_93);
hashMap.put(8, zzsk.CODABAR);
hashMap.put(16, zzsk.DATA_MATRIX);
hashMap.put(32, zzsk.EAN_13);
hashMap.put(64, zzsk.EAN_8);
hashMap.put(128, zzsk.ITF);
hashMap.put(256, zzsk.QR_CODE);
hashMap.put(512, zzsk.UPC_A);
hashMap.put(1024, zzsk.UPC_E);
hashMap.put(2048, zzsk.PDF417);
hashMap.put(4096, zzsk.AZTEC);
}
public final int zznf() {
return this.zzavy;
}
}