what-the-bank/sources/o/DrQ.java

74 lines
1.9 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.bouncycastle.asn1.x509.DisplayText;
/* loaded from: classes.dex */
public class DrQ {
public final Map<String, String> a;
public final boolean b;
public final byte[] c;
public final int d;
public final List<ucE> e;
private long f;
@Deprecated
private DrQ(byte[] bArr, Map<String, String> map, byte b) {
this(DisplayText.DISPLAY_TEXT_MAXIMUM_SIZE, bArr, map, e(map), false, 0L);
}
public DrQ(int i, byte[] bArr, boolean z, long j, List<ucE> list) {
this(i, bArr, b(list), list, z, j);
}
@Deprecated
public DrQ(byte[] bArr, Map<String, String> map) {
this(bArr, map, (byte) 0);
}
private DrQ(int i, byte[] bArr, Map<String, String> map, List<ucE> list, boolean z, long j) {
this.d = i;
this.c = bArr;
this.a = map;
if (list == null) {
this.e = null;
} else {
this.e = Collections.unmodifiableList(list);
}
this.b = z;
this.f = j;
}
private static Map<String, String> b(List<ucE> list) {
if (list == null) {
return null;
}
if (list.isEmpty()) {
return Collections.emptyMap();
}
TreeMap treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);
for (ucE uce : list) {
treeMap.put(uce.e, uce.b);
}
return treeMap;
}
private static List<ucE> e(Map<String, String> map) {
if (map == null) {
return null;
}
if (map.isEmpty()) {
return Collections.emptyList();
}
ArrayList arrayList = new ArrayList(map.size());
for (Map.Entry<String, String> entry : map.entrySet()) {
arrayList.add(new ucE(entry.getKey(), entry.getValue()));
}
return arrayList;
}
}