279 lines
6.5 KiB
Smali
279 lines
6.5 KiB
Smali
.class public final Lio/reactivex/internal/operators/flowable/y0$a;
|
|
.super Ljava/lang/Object;
|
|
.source "FlowableSingleMaybe.java"
|
|
|
|
# interfaces
|
|
.implements Lkh/o;
|
|
.implements Lio/reactivex/disposables/b;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lio/reactivex/internal/operators/flowable/y0;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lkh/o<",
|
|
"TT;>;",
|
|
"Lio/reactivex/disposables/b;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lkh/t;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkh/t<",
|
|
"-TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public b:Lok/e;
|
|
|
|
.field public c:Z
|
|
|
|
.field public d:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkh/t;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkh/t<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->a:Lkh/t;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public dispose()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
invoke-interface {v0}, Lok/e;->cancel()V
|
|
|
|
.line 2
|
|
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
|
|
|
|
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public isDisposed()Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
sget-object v1, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public onComplete()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->c:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->c:Z
|
|
|
|
.line 3
|
|
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
|
|
|
|
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->d:Ljava/lang/Object;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 5
|
|
iput-object v1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->d:Ljava/lang/Object;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 6
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->a:Lkh/t;
|
|
|
|
invoke-interface {v0}, Lkh/t;->onComplete()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_1
|
|
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->a:Lkh/t;
|
|
|
|
invoke-interface {v1, v0}, Lkh/t;->onSuccess(Ljava/lang/Object;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->c:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lwh/a;->Y(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 3
|
|
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->c:Z
|
|
|
|
.line 4
|
|
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
|
|
|
|
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
.line 5
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->a:Lkh/t;
|
|
|
|
invoke-interface {v0, p1}, Lkh/t;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNext(Ljava/lang/Object;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->c:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->d:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 3
|
|
iput-boolean p1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->c:Z
|
|
|
|
.line 4
|
|
iget-object p1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
invoke-interface {p1}, Lok/e;->cancel()V
|
|
|
|
.line 5
|
|
sget-object p1, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
|
|
|
|
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
.line 6
|
|
iget-object p1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->a:Lkh/t;
|
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Sequence contains more than one element!"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-interface {p1, v0}, Lkh/t;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
.line 7
|
|
:cond_1
|
|
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->d:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSubscribe(Lok/e;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->validate(Lok/e;Lok/e;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/y0$a;->b:Lok/e;
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/y0$a;->a:Lkh/t;
|
|
|
|
invoke-interface {v0, p0}, Lkh/t;->onSubscribe(Lio/reactivex/disposables/b;)V
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
.line 4
|
|
invoke-interface {p1, v0, v1}, Lok/e;->request(J)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|