33 lines
800 B
Java
33 lines
800 B
Java
package j0.l.a;
|
|
|
|
import c.q.a.k.a;
|
|
import j0.l.a.y1;
|
|
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) {
|
|
producer = cVar.r;
|
|
cVar.q = a.d(cVar.q, j);
|
|
}
|
|
if (producer != null) {
|
|
producer.j(j);
|
|
}
|
|
cVar.b();
|
|
} else if (i < 0) {
|
|
throw new IllegalArgumentException(c.d.b.a.a.q("n >= 0 expected but it was ", j));
|
|
}
|
|
}
|
|
}
|