67 lines
1.5 KiB
Java
67 lines
1.5 KiB
Java
package c.i.a.c.a2.g0;
|
|
|
|
import c.i.a.c.a2.t;
|
|
import c.i.a.c.a2.u;
|
|
import c.i.a.c.i2.f0;
|
|
import c.i.a.c.i2.q;
|
|
/* compiled from: IndexSeeker */
|
|
public final class d implements g {
|
|
public final long a;
|
|
public final q b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final q f688c;
|
|
public long d;
|
|
|
|
public d(long j, long j2, long j3) {
|
|
this.d = j;
|
|
this.a = j3;
|
|
q qVar = new q();
|
|
this.b = qVar;
|
|
q qVar2 = new q();
|
|
this.f688c = qVar2;
|
|
qVar.a(0);
|
|
qVar2.a(j2);
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.g0.g
|
|
public long a() {
|
|
return this.a;
|
|
}
|
|
|
|
public boolean b(long j) {
|
|
q qVar = this.b;
|
|
return j - qVar.b(qVar.a - 1) < 100000;
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public boolean c() {
|
|
return true;
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.g0.g
|
|
public long d(long j) {
|
|
return this.b.b(f0.c(this.f688c, j, true, true));
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public t.a h(long j) {
|
|
int c2 = f0.c(this.b, j, true, true);
|
|
long b = this.b.b(c2);
|
|
u uVar = new u(b, this.f688c.b(c2));
|
|
if (b != j) {
|
|
q qVar = this.b;
|
|
if (c2 != qVar.a - 1) {
|
|
int i = c2 + 1;
|
|
return new t.a(uVar, new u(qVar.b(i), this.f688c.b(i)));
|
|
}
|
|
}
|
|
return new t.a(uVar);
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public long i() {
|
|
return this.d;
|
|
}
|
|
}
|