2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lrx/subscriptions/SerialSubscription;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "SerialSubscription.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/Subscription;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-04-11 15:34:05 +00:00
|
|
|
.field public final d:Lh0/m/d/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v0, Lh0/m/d/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v0}, Lh0/m/d/a;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Lh0/m/d/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public a()Lrx/Subscription;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Lh0/m/d/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v0}, Lh0/m/d/a;->a()Lrx/Subscription;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(Lrx/Subscription;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Lh0/m/d/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lrx/Subscription;
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v2, Lh0/m/d/b;->d:Lh0/m/d/b;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lrx/Subscription;->unsubscribe()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v0, v1, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v1}, Lrx/Subscription;->unsubscribe()V
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string v0, "Subscription can not be null"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public isUnsubscribed()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Lh0/m/d/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v0}, Lh0/m/d/a;->isUnsubscribed()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public unsubscribe()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Lh0/m/d/a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v0}, Lh0/m/d/a;->unsubscribe()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|