44 lines
1.0 KiB
Java
44 lines
1.0 KiB
Java
package j0.l.a;
|
|
|
|
import rx.Producer;
|
|
import rx.Subscriber;
|
|
/* compiled from: OperatorSkip */
|
|
public class s1 extends Subscriber<T> {
|
|
public int i;
|
|
public final /* synthetic */ Subscriber j;
|
|
public final /* synthetic */ t1 k;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public s1(t1 t1Var, Subscriber subscriber, Subscriber subscriber2) {
|
|
super(subscriber);
|
|
this.k = t1Var;
|
|
this.j = subscriber2;
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onCompleted() {
|
|
this.j.onCompleted();
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onError(Throwable th) {
|
|
this.j.onError(th);
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onNext(T t) {
|
|
int i = this.i;
|
|
if (i >= this.k.i) {
|
|
this.j.onNext(t);
|
|
} else {
|
|
this.i = i + 1;
|
|
}
|
|
}
|
|
|
|
@Override // rx.Subscriber
|
|
public void setProducer(Producer producer) {
|
|
this.j.setProducer(producer);
|
|
producer.j((long) this.k.i);
|
|
}
|
|
}
|