package i.b.a.l;

/* JADX INFO: compiled from: AbstractQuery.java */
/* JADX INFO: loaded from: classes.dex */
abstract class a<T> {
    protected final i.b.a.a<T, ?> a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    protected final i.b.a.f<T> f4292b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    protected final String f4293c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    protected final String[] f4294d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    protected final Thread f4295e = Thread.currentThread();

    protected a(i.b.a.a<T, ?> aVar, String str, String[] strArr) {
        this.a = aVar;
        this.f4292b = new i.b.a.f<>(aVar);
        this.f4293c = str;
        this.f4294d = strArr;
    }

    protected static String[] b(Object[] objArr) {
        int length = objArr.length;
        String[] strArr = new String[length];
        for (int i2 = 0; i2 < length; i2++) {
            Object obj = objArr[i2];
            if (obj != null) {
                strArr[i2] = obj.toString();
            } else {
                strArr[i2] = null;
            }
        }
        return strArr;
    }

    protected void a() {
        if (Thread.currentThread() != this.f4295e) {
            throw new i.b.a.d("Method may be called only in owner thread, use forCurrentThread to get an instance for this thread");
        }
    }
}
