FlowableLastSingle$LastSubscriber.smali
.class final Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;
.super Ljava/lang/Object;
.source "FlowableLastSingle.java"
# interfaces
.implements Lio/reactivex/FlowableSubscriber;
.implements Lio/reactivex/disposables/Disposable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/FlowableLastSingle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "LastSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/FlowableSubscriber<",
"TT;>;",
"Lio/reactivex/disposables/Disposable;"
}
.end annotation
# instance fields
.field final actual:Lio/reactivex/SingleObserver;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/SingleObserver<",
"-TT;>;"
}
.end annotation
.end field
.field final defaultItem:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field item:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field s:Lorg/reactivestreams/Subscription;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lio/reactivex/SingleObserver;Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/SingleObserver<",
"-TT;>;TT;)V"
}
.end annotation
.line 58
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber<TT;>;"
.local p1, "actual":Lio/reactivex/SingleObserver;, "Lio/reactivex/SingleObserver<-TT;>;"
.local p2, "defaultItem":Ljava/lang/Object;, "TT;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 59
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->actual:Lio/reactivex/SingleObserver;
.line 60
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->defaultItem:Ljava/lang/Object;
.line 61
return-void
.end method
# virtual methods
.method public dispose()V
.registers 2
.line 65
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v0}, Lorg/reactivestreams/Subscription;->cancel()V
.line 66
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 67
return-void
.end method
.method public isDisposed()Z
.registers 3
.line 71
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->s:Lorg/reactivestreams/Subscription;
sget-object v1, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
if-ne v0, v1, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return v0
.end method
.method public onComplete()V
.registers 4
.line 99
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber<TT;>;"
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 100
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->item:Ljava/lang/Object;
.line 101
.local v0, "v":Ljava/lang/Object;, "TT;"
if-eqz v0, :cond_11
.line 102
const/4 v1, 0x0
iput-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->item:Ljava/lang/Object;
.line 103
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-interface {v1, v0}, Lio/reactivex/SingleObserver;->onSuccess(Ljava/lang/Object;)V
goto :goto_25
.line 105
:cond_11
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->defaultItem:Ljava/lang/Object;
.line 107
if-eqz v0, :cond_1b
.line 108
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-interface {v1, v0}, Lio/reactivex/SingleObserver;->onSuccess(Ljava/lang/Object;)V
goto :goto_25
.line 110
:cond_1b
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->actual:Lio/reactivex/SingleObserver;
new-instance v2, Ljava/util/NoSuchElementException;
invoke-direct {v2}, Ljava/util/NoSuchElementException;-><init>()V
invoke-interface {v1, v2}, Lio/reactivex/SingleObserver;->onError(Ljava/lang/Throwable;)V
.line 113
:goto_25
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.param p1, "t" # Ljava/lang/Throwable;
.line 92
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber<TT;>;"
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 93
const/4 v0, 0x0
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->item:Ljava/lang/Object;
.line 94
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-interface {v0, p1}, Lio/reactivex/SingleObserver;->onError(Ljava/lang/Throwable;)V
.line 95
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 87
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber<TT;>;"
.local p1, "t":Ljava/lang/Object;, "TT;"
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->item:Ljava/lang/Object;
.line 88
return-void
.end method
.method public onSubscribe(Lorg/reactivestreams/Subscription;)V
.registers 4
.param p1, "s" # Lorg/reactivestreams/Subscription;
.line 76
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->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_17
.line 77
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 79
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableLastSingle$LastSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-interface {v0, p0}, Lio/reactivex/SingleObserver;->onSubscribe(Lio/reactivex/disposables/Disposable;)V
.line 81
const-wide v0, 0x7fffffffffffffffL
invoke-interface {p1, v0, v1}, Lorg/reactivestreams/Subscription;->request(J)V
.line 83
:cond_17
return-void
.end method