64 lines
2.0 KiB
Java
64 lines
2.0 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import java.util.concurrent.Callable;
|
|
import java.util.concurrent.FutureTask;
|
|
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
|
|
public final class s4<V> extends FutureTask<V> implements Comparable<s4<V>> {
|
|
public final long i;
|
|
public final boolean j;
|
|
public final String k;
|
|
public final /* synthetic */ r4 l;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public s4(r4 r4Var, Runnable runnable, boolean z2, String str) {
|
|
super(runnable, null);
|
|
this.l = r4Var;
|
|
long andIncrement = r4.f1191c.getAndIncrement();
|
|
this.i = andIncrement;
|
|
this.k = str;
|
|
this.j = z2;
|
|
if (andIncrement == Long.MAX_VALUE) {
|
|
r4Var.g().f.a("Tasks index overflow");
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public s4(r4 r4Var, Callable<V> callable, boolean z2, String str) {
|
|
super(callable);
|
|
this.l = r4Var;
|
|
long andIncrement = r4.f1191c.getAndIncrement();
|
|
this.i = andIncrement;
|
|
this.k = str;
|
|
this.j = z2;
|
|
if (andIncrement == Long.MAX_VALUE) {
|
|
r4Var.g().f.a("Tasks index overflow");
|
|
}
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
public final int compareTo(@NonNull Object obj) {
|
|
s4 s4Var = (s4) obj;
|
|
boolean z2 = this.j;
|
|
if (z2 != s4Var.j) {
|
|
return z2 ? -1 : 1;
|
|
}
|
|
long j = this.i;
|
|
long j2 = s4Var.i;
|
|
if (j < j2) {
|
|
return -1;
|
|
}
|
|
if (j > j2) {
|
|
return 1;
|
|
}
|
|
this.l.g().g.b("Two tasks share the same index. index", Long.valueOf(this.i));
|
|
return 0;
|
|
}
|
|
|
|
@Override // java.util.concurrent.FutureTask
|
|
public final void setException(Throwable th) {
|
|
this.l.g().f.b(this.k, th);
|
|
super.setException(th);
|
|
}
|
|
}
|