55 lines
1.7 KiB
Java
55 lines
1.7 KiB
Java
package org.greenrobot.greendao.query;
|
|
|
|
import java.util.List;
|
|
import org.greenrobot.greendao.AbstractDao;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class Query<T> extends AbstractQueryWithLimit<T> {
|
|
private final QueryData<T> h;
|
|
|
|
private static final class QueryData<T2> extends AbstractQueryData<T2, Query<T2>> {
|
|
private final int e;
|
|
private final int f;
|
|
|
|
QueryData(AbstractDao<T2, ?> abstractDao, String str, String[] strArr, int i, int i2) {
|
|
super(abstractDao, str, strArr);
|
|
this.e = i;
|
|
this.f = i2;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
@Override // org.greenrobot.greendao.query.AbstractQueryData
|
|
public Query<T2> a() {
|
|
return new Query<>(this, this.b, this.a, (String[]) this.c.clone(), this.e, this.f);
|
|
}
|
|
}
|
|
|
|
static <T2> Query<T2> a(AbstractDao<T2, ?> abstractDao, String str, Object[] objArr, int i, int i2) {
|
|
return new QueryData(abstractDao, str, AbstractQuery.a(objArr), i, i2).b();
|
|
}
|
|
|
|
public Query<T> b() {
|
|
return (Query) this.h.a(this);
|
|
}
|
|
|
|
public List<T> c() {
|
|
a();
|
|
return this.b.a(this.a.d().a(this.c, this.d));
|
|
}
|
|
|
|
public T d() {
|
|
a();
|
|
return this.b.b(this.a.d().a(this.c, this.d));
|
|
}
|
|
|
|
private Query(QueryData<T> queryData, AbstractDao<T, ?> abstractDao, String str, String[] strArr, int i, int i2) {
|
|
super(abstractDao, str, strArr, i, i2);
|
|
this.h = queryData;
|
|
}
|
|
|
|
@Override // org.greenrobot.greendao.query.AbstractQueryWithLimit, org.greenrobot.greendao.query.AbstractQuery
|
|
public Query<T> a(int i, Object obj) {
|
|
return (Query) super.a(i, obj);
|
|
}
|
|
}
|