b.smali
.class public final Lrx/i/b;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lrx/j;
# instance fields
.field public a:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lrx/j;",
">;"
}
.end annotation
.end field
.field public volatile b:Z
# direct methods
.method public constructor <init>()V
.registers 1
.line 41
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public varargs constructor <init>([Lrx/j;)V
.registers 3
.line 45
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 46
new-instance v0, Ljava/util/HashSet;
invoke-static {p1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
invoke-direct {v0, p1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
iput-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
return-void
.end method
.method private static a(Ljava/util/Collection;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"Lrx/j;",
">;)V"
}
.end annotation
if-nez p0, :cond_3
return-void
:cond_3
const/4 v0, 0x0
.line 184
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_8
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_24
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lrx/j;
.line 186
:try_start_14
invoke-interface {v1}, Lrx/j;->unsubscribe()V
:try_end_17
.catchall {:try_start_14 .. :try_end_17} :catchall_18
goto :goto_8
:catchall_18
move-exception v1
if-nez v0, :cond_20
.line 189
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 191
:cond_20
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_8
.line 194
:cond_24
invoke-static {v0}, Lrx/exceptions/a;->a(Ljava/util/List;)V
return-void
.end method
# virtual methods
.method public final a()V
.registers 3
.line 143
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-nez v0, :cond_1d
.line 145
monitor-enter p0
.line 146
:try_start_5
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-nez v0, :cond_18
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
if-nez v0, :cond_e
goto :goto_18
.line 149
:cond_e
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
const/4 v1, 0x0
.line 150
iput-object v1, p0, Lrx/i/b;->a:Ljava/util/Set;
.line 152
monitor-exit p0
:try_end_14
.catchall {:try_start_5 .. :try_end_14} :catchall_1a
.line 153
invoke-static {v0}, Lrx/i/b;->a(Ljava/util/Collection;)V
goto :goto_1d
.line 147
:cond_18
:goto_18
:try_start_18
monitor-exit p0
return-void
:catchall_1a
move-exception v0
.line 152
monitor-exit p0
:try_end_1c
.catchall {:try_start_18 .. :try_end_1c} :catchall_1a
throw v0
:cond_1d
:goto_1d
return-void
.end method
.method public final a(Lrx/j;)V
.registers 4
.line 64
invoke-interface {p1}, Lrx/j;->isUnsubscribed()Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 67
:cond_7
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-nez v0, :cond_28
.line 68
monitor-enter p0
.line 69
:try_start_c
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-nez v0, :cond_23
.line 70
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
if-nez v0, :cond_1c
.line 71
new-instance v0, Ljava/util/HashSet;
const/4 v1, 0x4
invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(I)V
iput-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
.line 73
:cond_1c
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 74
monitor-exit p0
return-void
.line 76
:cond_23
monitor-exit p0
goto :goto_28
:catchall_25
move-exception p1
monitor-exit p0
:try_end_27
.catchall {:try_start_c .. :try_end_27} :catchall_25
throw p1
.line 79
:cond_28
:goto_28
invoke-interface {p1}, Lrx/j;->unsubscribe()V
return-void
.end method
.method public final b(Lrx/j;)V
.registers 3
.line 122
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-nez v0, :cond_20
.line 124
monitor-enter p0
.line 125
:try_start_5
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-nez v0, :cond_1b
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
if-nez v0, :cond_e
goto :goto_1b
.line 128
:cond_e
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
move-result v0
.line 129
monitor-exit p0
:try_end_15
.catchall {:try_start_5 .. :try_end_15} :catchall_1d
if-eqz v0, :cond_20
.line 132
invoke-interface {p1}, Lrx/j;->unsubscribe()V
goto :goto_20
.line 126
:cond_1b
:goto_1b
:try_start_1b
monitor-exit p0
return-void
:catchall_1d
move-exception p1
.line 129
monitor-exit p0
:try_end_1f
.catchall {:try_start_1b .. :try_end_1f} :catchall_1d
throw p1
:cond_20
:goto_20
return-void
.end method
.method public final b()Z
.registers 3
.line 204
iget-boolean v0, p0, Lrx/i/b;->b:Z
const/4 v1, 0x0
if-nez v0, :cond_1c
.line 205
monitor-enter p0
.line 206
:try_start_6
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-nez v0, :cond_17
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
if-eqz v0, :cond_17
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z
move-result v0
if-nez v0, :cond_17
const/4 v1, 0x1
:cond_17
monitor-exit p0
return v1
:catchall_19
move-exception v0
.line 207
monitor-exit p0
:try_end_1b
.catchall {:try_start_6 .. :try_end_1b} :catchall_19
throw v0
:cond_1c
return v1
.end method
.method public final isUnsubscribed()Z
.registers 2
.line 51
iget-boolean v0, p0, Lrx/i/b;->b:Z
return v0
.end method
.method public final unsubscribe()V
.registers 3
.line 164
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-nez v0, :cond_1b
.line 166
monitor-enter p0
.line 167
:try_start_5
iget-boolean v0, p0, Lrx/i/b;->b:Z
if-eqz v0, :cond_b
.line 168
monitor-exit p0
return-void
:cond_b
const/4 v0, 0x1
.line 170
iput-boolean v0, p0, Lrx/i/b;->b:Z
.line 171
iget-object v0, p0, Lrx/i/b;->a:Ljava/util/Set;
const/4 v1, 0x0
.line 172
iput-object v1, p0, Lrx/i/b;->a:Ljava/util/Set;
.line 173
monitor-exit p0
:try_end_14
.catchall {:try_start_5 .. :try_end_14} :catchall_18
.line 175
invoke-static {v0}, Lrx/i/b;->a(Ljava/util/Collection;)V
goto :goto_1b
:catchall_18
move-exception v0
.line 173
:try_start_19
monitor-exit p0
:try_end_1a
.catchall {:try_start_19 .. :try_end_1a} :catchall_18
throw v0
:cond_1b
:goto_1b
return-void
.end method