mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
41 lines
1.3 KiB
Java
41 lines
1.3 KiB
Java
package com.google.zxing.pdf417.decoder;
|
|
|
|
import com.google.zxing.pdf417.PDF417Common;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes3.dex */
|
|
final class BarcodeValue {
|
|
private final Map<Integer, Integer> values = new HashMap();
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public void setValue(int i) {
|
|
Integer num = this.values.get(Integer.valueOf(i));
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
this.values.put(Integer.valueOf(i), Integer.valueOf(num.intValue() + 1));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public int[] getValue() {
|
|
ArrayList arrayList = new ArrayList();
|
|
int i = -1;
|
|
for (Map.Entry<Integer, Integer> entry : this.values.entrySet()) {
|
|
if (entry.getValue().intValue() > i) {
|
|
i = entry.getValue().intValue();
|
|
arrayList.clear();
|
|
arrayList.add(entry.getKey());
|
|
} else if (entry.getValue().intValue() == i) {
|
|
arrayList.add(entry.getKey());
|
|
}
|
|
}
|
|
return PDF417Common.toIntArray(arrayList);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public Integer getConfidence(int i) {
|
|
return this.values.get(Integer.valueOf(i));
|
|
}
|
|
}
|