FlowableSkip$SkipSubscriber.smali
.class final Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;
.super Ljava/lang/Object;
.source "FlowableSkip.java"
# interfaces
.implements Lio/reactivex/FlowableSubscriber;
.implements Lorg/reactivestreams/Subscription;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/FlowableSkip;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "SkipSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/FlowableSubscriber<",
"TT;>;",
"Lorg/reactivestreams/Subscription;"
}
.end annotation
# instance fields
.field final actual:Lorg/reactivestreams/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lorg/reactivestreams/Subscriber<",
"-TT;>;"
}
.end annotation
.end field
.field remaining:J
.field s:Lorg/reactivestreams/Subscription;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lorg/reactivestreams/Subscriber;J)V
.registers 4
.param p2, "n" # J
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/reactivestreams/Subscriber<",
"-TT;>;J)V"
}
.end annotation
.line 39
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber<TT;>;"
.local p1, "actual":Lorg/reactivestreams/Subscriber;, "Lorg/reactivestreams/Subscriber<-TT;>;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 40
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->actual:Lorg/reactivestreams/Subscriber;
.line 41
iput-wide p2, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->remaining:J
.line 42
return-void
.end method
# virtual methods
.method public cancel()V
.registers 2
.line 80
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v0}, Lorg/reactivestreams/Subscription;->cancel()V
.line 81
return-void
.end method
.method public onComplete()V
.registers 2
.line 70
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->actual:Lorg/reactivestreams/Subscriber;
invoke-interface {v0}, Lorg/reactivestreams/Subscriber;->onComplete()V
.line 71
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.param p1, "t" # Ljava/lang/Throwable;
.line 65
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->actual:Lorg/reactivestreams/Subscriber;
invoke-interface {v0, p1}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
.line 66
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 56
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber<TT;>;"
.local p1, "t":Ljava/lang/Object;, "TT;"
iget-wide v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->remaining:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_e
.line 57
const-wide/16 v2, 0x1
sub-long/2addr v0, v2
iput-wide v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->remaining:J
goto :goto_13
.line 59
:cond_e
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->actual:Lorg/reactivestreams/Subscriber;
invoke-interface {v0, p1}, Lorg/reactivestreams/Subscriber;->onNext(Ljava/lang/Object;)V
.line 61
:goto_13
return-void
.end method
.method public onSubscribe(Lorg/reactivestreams/Subscription;)V
.registers 5
.param p1, "s" # Lorg/reactivestreams/Subscription;
.line 46
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->validate(Lorg/reactivestreams/Subscription;Lorg/reactivestreams/Subscription;)Z
move-result v0
if-eqz v0, :cond_14
.line 47
iget-wide v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->remaining:J
.line 48
.local v0, "n":J
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 49
iget-object v2, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->actual:Lorg/reactivestreams/Subscriber;
invoke-interface {v2, p0}, Lorg/reactivestreams/Subscriber;->onSubscribe(Lorg/reactivestreams/Subscription;)V
.line 50
invoke-interface {p1, v0, v1}, Lorg/reactivestreams/Subscription;->request(J)V
.line 52
.end local v0 # "n":J
:cond_14
return-void
.end method
.method public request(J)V
.registers 4
.param p1, "n" # J
.line 75
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSkip$SkipSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v0, p1, p2}, Lorg/reactivestreams/Subscription;->request(J)V
.line 76
return-void
.end method