package com.google.zxing; import java.util.EnumMap; import java.util.Map; /* loaded from: classes.dex */ public final class Result { private final String a; private final byte[] b; private ResultPoint[] c; private final BarcodeFormat d; private Map e; private final long f; public Result(String str, byte[] bArr, ResultPoint[] resultPointArr, BarcodeFormat barcodeFormat) { this(str, bArr, resultPointArr, barcodeFormat, System.currentTimeMillis()); } public BarcodeFormat a() { return this.d; } public byte[] b() { return this.b; } public Map c() { return this.e; } public ResultPoint[] d() { return this.c; } public String e() { return this.a; } public long f() { return this.f; } public String toString() { return this.a; } public Result(String str, byte[] bArr, ResultPoint[] resultPointArr, BarcodeFormat barcodeFormat, long j) { this(str, bArr, bArr == null ? 0 : bArr.length * 8, resultPointArr, barcodeFormat, j); } public void a(ResultMetadataType resultMetadataType, Object obj) { if (this.e == null) { this.e = new EnumMap(ResultMetadataType.class); } this.e.put(resultMetadataType, obj); } public Result(String str, byte[] bArr, int i, ResultPoint[] resultPointArr, BarcodeFormat barcodeFormat, long j) { this.a = str; this.b = bArr; this.c = resultPointArr; this.d = barcodeFormat; this.e = null; this.f = j; } public void a(Map map) { if (map != null) { Map map2 = this.e; if (map2 == null) { this.e = map; } else { map2.putAll(map); } } } public void a(ResultPoint[] resultPointArr) { ResultPoint[] resultPointArr2 = this.c; if (resultPointArr2 == null) { this.c = resultPointArr; return; } if (resultPointArr == null || resultPointArr.length <= 0) { return; } ResultPoint[] resultPointArr3 = new ResultPoint[resultPointArr2.length + resultPointArr.length]; System.arraycopy(resultPointArr2, 0, resultPointArr3, 0, resultPointArr2.length); System.arraycopy(resultPointArr, 0, resultPointArr3, resultPointArr2.length, resultPointArr.length); this.c = resultPointArr3; } }