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 a; public final boolean b; public final byte[] c; public final int d; public final List e; private long f; @Deprecated private DrQ(byte[] bArr, Map 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 list) { this(i, bArr, b(list), list, z, j); } @Deprecated public DrQ(byte[] bArr, Map map) { this(bArr, map, (byte) 0); } private DrQ(int i, byte[] bArr, Map map, List 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 b(List 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 e(Map map) { if (map == null) { return null; } if (map.isEmpty()) { return Collections.emptyList(); } ArrayList arrayList = new ArrayList(map.size()); for (Map.Entry entry : map.entrySet()) { arrayList.add(new ucE(entry.getKey(), entry.getValue())); } return arrayList; } }