2021-11-08 18:25:28 +00:00
|
|
|
package j0.l.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
import h0.b.a.f.a;
|
|
|
|
import j0.l.a.y1;
|
2021-06-27 20:44:35 +00:00
|
|
|
import rx.Producer;
|
|
|
|
/* compiled from: OperatorSwitch */
|
|
|
|
public class a2 implements Producer {
|
|
|
|
public final /* synthetic */ y1.c i;
|
|
|
|
|
|
|
|
public a2(y1.c cVar) {
|
|
|
|
this.i = cVar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // rx.Producer
|
|
|
|
public void j(long j) {
|
|
|
|
Producer producer;
|
|
|
|
int i = (j > 0 ? 1 : (j == 0 ? 0 : -1));
|
|
|
|
if (i > 0) {
|
|
|
|
y1.c cVar = this.i;
|
|
|
|
synchronized (cVar) {
|
2021-11-08 18:25:28 +00:00
|
|
|
producer = cVar.r;
|
|
|
|
cVar.q = a.a(cVar.q, j);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
if (producer != null) {
|
|
|
|
producer.j(j);
|
|
|
|
}
|
|
|
|
cVar.b();
|
|
|
|
} else if (i < 0) {
|
2021-11-08 18:25:28 +00:00
|
|
|
throw new IllegalArgumentException(c.d.b.a.a.s("n >= 0 expected but it was ", j));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|