j$b.smali
.class final Lio/reactivex/internal/operators/observable/j$b;
.super Lio/reactivex/internal/observers/j;
.source "ObservableBufferBoundarySupplier.java"
# interfaces
.implements Lio/reactivex/w;
.implements Lio/reactivex/disposables/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/observable/j;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "b"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"U::",
"Ljava/util/Collection<",
"-TT;>;B:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/internal/observers/j<",
"TT;TU;TU;>;",
"Lio/reactivex/w<",
"TT;>;",
"Lio/reactivex/disposables/b;"
}
.end annotation
# instance fields
.field final g:Ljava/util/concurrent/Callable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/Callable<",
"TU;>;"
}
.end annotation
.end field
.field final h:Ljava/util/concurrent/Callable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/Callable<",
"+",
"Lio/reactivex/u<",
"TB;>;>;"
}
.end annotation
.end field
.field i:Lio/reactivex/disposables/b;
.field final j:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/disposables/b;",
">;"
}
.end annotation
.end field
.field k:Ljava/util/Collection;
.annotation system Ldalvik/annotation/Signature;
value = {
"TU;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lio/reactivex/w;Ljava/util/concurrent/Callable;Ljava/util/concurrent/Callable;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/w<",
"-TU;>;",
"Ljava/util/concurrent/Callable<",
"TU;>;",
"Ljava/util/concurrent/Callable<",
"+",
"Lio/reactivex/u<",
"TB;>;>;)V"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/internal/queue/MpscLinkedQueue;
invoke-direct {v0}, Lio/reactivex/internal/queue/MpscLinkedQueue;-><init>()V
invoke-direct {p0, p1, v0}, Lio/reactivex/internal/observers/j;-><init>(Lio/reactivex/w;Lio/reactivex/c/a/j;)V
.line 2
new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
iput-object p1, p0, Lio/reactivex/internal/operators/observable/j$b;->j:Ljava/util/concurrent/atomic/AtomicReference;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/observable/j$b;->g:Ljava/util/concurrent/Callable;
.line 4
iput-object p3, p0, Lio/reactivex/internal/operators/observable/j$b;->h:Ljava/util/concurrent/Callable;
return-void
.end method
# virtual methods
.method public bridge synthetic a(Lio/reactivex/w;Ljava/lang/Object;)V
.registers 3
.line 1
check-cast p2, Ljava/util/Collection;
invoke-virtual {p0, p1, p2}, Lio/reactivex/internal/operators/observable/j$b;->a(Lio/reactivex/w;Ljava/util/Collection;)V
return-void
.end method
.method public a(Lio/reactivex/w;Ljava/util/Collection;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/w<",
"-TU;>;TU;)V"
}
.end annotation
.line 2
iget-object p1, p0, Lio/reactivex/internal/observers/j;->b:Lio/reactivex/w;
invoke-interface {p1, p2}, Lio/reactivex/w;->onNext(Ljava/lang/Object;)V
return-void
.end method
.method d()V
.registers 2
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/observable/j$b;->j:Ljava/util/concurrent/atomic/AtomicReference;
invoke-static {v0}, Lio/reactivex/internal/disposables/DisposableHelper;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
return-void
.end method
.method public dispose()V
.registers 2
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/observers/j;->d:Z
if-nez v0, :cond_1a
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lio/reactivex/internal/observers/j;->d:Z
.line 3
iget-object v0, p0, Lio/reactivex/internal/operators/observable/j$b;->i:Lio/reactivex/disposables/b;
invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
.line 4
invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/j$b;->d()V
.line 5
invoke-virtual {p0}, Lio/reactivex/internal/observers/j;->b()Z
move-result v0
if-eqz v0, :cond_1a
.line 6
iget-object v0, p0, Lio/reactivex/internal/observers/j;->c:Lio/reactivex/c/a/j;
invoke-interface {v0}, Lio/reactivex/c/a/k;->clear()V
:cond_1a
return-void
.end method
.method e()V
.registers 5
.line 1
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/observable/j$b;->g:Ljava/util/concurrent/Callable;
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v0
const-string v1, "The buffer supplied is null"
invoke-static {v0, v1}, Lio/reactivex/internal/functions/a;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
check-cast v0, Ljava/util/Collection;
:try_end_d
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_d} :catch_4f
.line 2
:try_start_d
iget-object v1, p0, Lio/reactivex/internal/operators/observable/j$b;->h:Ljava/util/concurrent/Callable;
invoke-interface {v1}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v1
const-string v2, "The boundary ObservableSource supplied is null"
invoke-static {v1, v2}, Lio/reactivex/internal/functions/a;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
check-cast v1, Lio/reactivex/u;
:try_end_1a
.catch Ljava/lang/Throwable; {:try_start_d .. :try_end_1a} :catch_3d
.line 3
new-instance v2, Lio/reactivex/internal/operators/observable/j$a;
invoke-direct {v2, p0}, Lio/reactivex/internal/operators/observable/j$a;-><init>(Lio/reactivex/internal/operators/observable/j$b;)V
.line 4
iget-object v3, p0, Lio/reactivex/internal/operators/observable/j$b;->j:Ljava/util/concurrent/atomic/AtomicReference;
invoke-static {v3, v2}, Lio/reactivex/internal/disposables/DisposableHelper;->replace(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/b;)Z
move-result v3
if-eqz v3, :cond_3c
.line 5
monitor-enter p0
.line 6
:try_start_28
iget-object v3, p0, Lio/reactivex/internal/operators/observable/j$b;->k:Ljava/util/Collection;
if-nez v3, :cond_2e
.line 7
monitor-exit p0
return-void
.line 8
:cond_2e
iput-object v0, p0, Lio/reactivex/internal/operators/observable/j$b;->k:Ljava/util/Collection;
.line 9
monitor-exit p0
:try_end_31
.catchall {:try_start_28 .. :try_end_31} :catchall_39
.line 10
invoke-interface {v1, v2}, Lio/reactivex/u;->subscribe(Lio/reactivex/w;)V
const/4 v0, 0x0
.line 11
invoke-virtual {p0, v3, v0, p0}, Lio/reactivex/internal/observers/j;->a(Ljava/lang/Object;ZLio/reactivex/disposables/b;)V
goto :goto_3c
:catchall_39
move-exception v0
.line 12
:try_start_3a
monitor-exit p0
:try_end_3b
.catchall {:try_start_3a .. :try_end_3b} :catchall_39
throw v0
:cond_3c
:goto_3c
return-void
:catch_3d
move-exception v0
.line 13
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
const/4 v1, 0x1
.line 14
iput-boolean v1, p0, Lio/reactivex/internal/observers/j;->d:Z
.line 15
iget-object v1, p0, Lio/reactivex/internal/operators/observable/j$b;->i:Lio/reactivex/disposables/b;
invoke-interface {v1}, Lio/reactivex/disposables/b;->dispose()V
.line 16
iget-object v1, p0, Lio/reactivex/internal/observers/j;->b:Lio/reactivex/w;
invoke-interface {v1, v0}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
return-void
:catch_4f
move-exception v0
.line 17
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 18
invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/j$b;->dispose()V
.line 19
iget-object v1, p0, Lio/reactivex/internal/observers/j;->b:Lio/reactivex/w;
invoke-interface {v1, v0}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public isDisposed()Z
.registers 2
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/observers/j;->d:Z
return v0
.end method
.method public onComplete()V
.registers 4
.line 1
monitor-enter p0
.line 2
:try_start_1
iget-object v0, p0, Lio/reactivex/internal/operators/observable/j$b;->k:Ljava/util/Collection;
if-nez v0, :cond_7
.line 3
monitor-exit p0
return-void
:cond_7
const/4 v1, 0x0
.line 4
iput-object v1, p0, Lio/reactivex/internal/operators/observable/j$b;->k:Ljava/util/Collection;
.line 5
monitor-exit p0
:try_end_b
.catchall {:try_start_1 .. :try_end_b} :catchall_22
.line 6
iget-object v1, p0, Lio/reactivex/internal/observers/j;->c:Lio/reactivex/c/a/j;
invoke-interface {v1, v0}, Lio/reactivex/c/a/k;->offer(Ljava/lang/Object;)Z
const/4 v0, 0x1
.line 7
iput-boolean v0, p0, Lio/reactivex/internal/observers/j;->e:Z
.line 8
invoke-virtual {p0}, Lio/reactivex/internal/observers/j;->b()Z
move-result v0
if-eqz v0, :cond_21
.line 9
iget-object v0, p0, Lio/reactivex/internal/observers/j;->c:Lio/reactivex/c/a/j;
iget-object v1, p0, Lio/reactivex/internal/observers/j;->b:Lio/reactivex/w;
const/4 v2, 0x0
invoke-static {v0, v1, v2, p0, p0}, Lio/reactivex/internal/util/k;->a(Lio/reactivex/c/a/j;Lio/reactivex/w;ZLio/reactivex/disposables/b;Lio/reactivex/internal/util/h;)V
:cond_21
return-void
:catchall_22
move-exception v0
.line 10
:try_start_23
monitor-exit p0
:try_end_24
.catchall {:try_start_23 .. :try_end_24} :catchall_22
throw v0
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.line 1
invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/j$b;->dispose()V
.line 2
iget-object v0, p0, Lio/reactivex/internal/observers/j;->b:Lio/reactivex/w;
invoke-interface {v0, p1}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
monitor-enter p0
.line 2
:try_start_1
iget-object v0, p0, Lio/reactivex/internal/operators/observable/j$b;->k:Ljava/util/Collection;
if-nez v0, :cond_7
.line 3
monitor-exit p0
return-void
.line 4
:cond_7
invoke-interface {v0, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
.line 5
monitor-exit p0
return-void
:catchall_c
move-exception p1
monitor-exit p0
:try_end_e
.catchall {:try_start_1 .. :try_end_e} :catchall_c
throw p1
.end method
.method public onSubscribe(Lio/reactivex/disposables/b;)V
.registers 6
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/observable/j$b;->i:Lio/reactivex/disposables/b;
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/DisposableHelper;->validate(Lio/reactivex/disposables/b;Lio/reactivex/disposables/b;)Z
move-result v0
if-eqz v0, :cond_57
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/observable/j$b;->i:Lio/reactivex/disposables/b;
.line 3
iget-object v0, p0, Lio/reactivex/internal/observers/j;->b:Lio/reactivex/w;
const/4 v1, 0x1
.line 4
:try_start_d
iget-object v2, p0, Lio/reactivex/internal/operators/observable/j$b;->g:Ljava/util/concurrent/Callable;
invoke-interface {v2}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v2
const-string v3, "The buffer supplied is null"
invoke-static {v2, v3}, Lio/reactivex/internal/functions/a;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
check-cast v2, Ljava/util/Collection;
:try_end_1a
.catch Ljava/lang/Throwable; {:try_start_d .. :try_end_1a} :catch_4b
.line 5
iput-object v2, p0, Lio/reactivex/internal/operators/observable/j$b;->k:Ljava/util/Collection;
.line 6
:try_start_1c
iget-object v2, p0, Lio/reactivex/internal/operators/observable/j$b;->h:Ljava/util/concurrent/Callable;
invoke-interface {v2}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v2
const-string v3, "The boundary ObservableSource supplied is null"
invoke-static {v2, v3}, Lio/reactivex/internal/functions/a;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
check-cast v2, Lio/reactivex/u;
:try_end_29
.catch Ljava/lang/Throwable; {:try_start_1c .. :try_end_29} :catch_3e
.line 7
new-instance p1, Lio/reactivex/internal/operators/observable/j$a;
invoke-direct {p1, p0}, Lio/reactivex/internal/operators/observable/j$a;-><init>(Lio/reactivex/internal/operators/observable/j$b;)V
.line 8
iget-object v1, p0, Lio/reactivex/internal/operators/observable/j$b;->j:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v1, p1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
.line 9
invoke-interface {v0, p0}, Lio/reactivex/w;->onSubscribe(Lio/reactivex/disposables/b;)V
.line 10
iget-boolean v0, p0, Lio/reactivex/internal/observers/j;->d:Z
if-nez v0, :cond_57
.line 11
invoke-interface {v2, p1}, Lio/reactivex/u;->subscribe(Lio/reactivex/w;)V
goto :goto_57
:catch_3e
move-exception v2
.line 12
invoke-static {v2}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 13
iput-boolean v1, p0, Lio/reactivex/internal/observers/j;->d:Z
.line 14
invoke-interface {p1}, Lio/reactivex/disposables/b;->dispose()V
.line 15
invoke-static {v2, v0}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/w;)V
return-void
:catch_4b
move-exception v2
.line 16
invoke-static {v2}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 17
iput-boolean v1, p0, Lio/reactivex/internal/observers/j;->d:Z
.line 18
invoke-interface {p1}, Lio/reactivex/disposables/b;->dispose()V
.line 19
invoke-static {v2, v0}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/w;)V
:cond_57
:goto_57
return-void
.end method