package yk;

import java.util.EnumMap;
import java.util.Map;

/* loaded from: classes3.dex */
public final class q {

    /* renamed from: a, reason: collision with root package name */
    private final String f52831a;

    /* renamed from: b, reason: collision with root package name */
    private final byte[] f52832b;

    /* renamed from: c, reason: collision with root package name */
    private final int f52833c;

    /* renamed from: d, reason: collision with root package name */
    private s[] f52834d;

    /* renamed from: e, reason: collision with root package name */
    private final a f52835e;

    /* renamed from: f, reason: collision with root package name */
    private Map f52836f;

    /* renamed from: g, reason: collision with root package name */
    private final long f52837g;

    public q(String str, byte[] bArr, s[] sVarArr, a aVar) {
        this(str, bArr, sVarArr, aVar, System.currentTimeMillis());
    }

    public void a(s[] sVarArr) {
        s[] sVarArr2 = this.f52834d;
        if (sVarArr2 == null) {
            this.f52834d = sVarArr;
            return;
        }
        if (sVarArr == null || sVarArr.length <= 0) {
            return;
        }
        s[] sVarArr3 = new s[sVarArr2.length + sVarArr.length];
        System.arraycopy(sVarArr2, 0, sVarArr3, 0, sVarArr2.length);
        System.arraycopy(sVarArr, 0, sVarArr3, sVarArr2.length, sVarArr.length);
        this.f52834d = sVarArr3;
    }

    public a b() {
        return this.f52835e;
    }

    public byte[] c() {
        return this.f52832b;
    }

    public Map d() {
        return this.f52836f;
    }

    public s[] e() {
        return this.f52834d;
    }

    public String f() {
        return this.f52831a;
    }

    public void g(Map map) {
        if (map != null) {
            Map map2 = this.f52836f;
            if (map2 == null) {
                this.f52836f = map;
            } else {
                map2.putAll(map);
            }
        }
    }

    public void h(r rVar, Object obj) {
        if (this.f52836f == null) {
            this.f52836f = new EnumMap(r.class);
        }
        this.f52836f.put(rVar, obj);
    }

    public String toString() {
        return this.f52831a;
    }

    public q(String str, byte[] bArr, s[] sVarArr, a aVar, long j10) {
        this(str, bArr, bArr == null ? 0 : bArr.length * 8, sVarArr, aVar, j10);
    }

    public q(String str, byte[] bArr, int i10, s[] sVarArr, a aVar, long j10) {
        this.f52831a = str;
        this.f52832b = bArr;
        this.f52833c = i10;
        this.f52834d = sVarArr;
        this.f52835e = aVar;
        this.f52836f = null;
        this.f52837g = j10;
    }
}
