c.smali
.class final Lio/reactivex/internal/operators/observable/c;
.super Lio/reactivex/observers/c;
.source "BlockingObservableLatest.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/observers/c",
"<",
"Lio/reactivex/j",
"<TT;>;>;",
"Ljava/util/Iterator",
"<TT;>;"
}
.end annotation
# instance fields
.field private bOY:Lio/reactivex/j;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/j",
"<TT;>;"
}
.end annotation
.end field
.field private bOZ:Ljava/util/concurrent/Semaphore;
.field private bPa:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference",
"<",
"Lio/reactivex/j",
"<TT;>;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>()V
.registers 3
.prologue
.line 49
invoke-direct {p0}, Lio/reactivex/observers/c;-><init>()V
.line 53
new-instance v0, Ljava/util/concurrent/Semaphore;
const/4 v1, 0x0
invoke-direct {v0, v1}, Ljava/util/concurrent/Semaphore;-><init>(I)V
iput-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOZ:Ljava/util/concurrent/Semaphore;
.line 55
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
iput-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bPa:Ljava/util/concurrent/atomic/AtomicReference;
return-void
.end method
# virtual methods
.method public final hasNext()Z
.registers 3
.prologue
.line 77
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
if-eqz v0, :cond_19
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
.line 2049
iget-object v0, v0, Lio/reactivex/j;->value:Ljava/lang/Object;
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v0
.line 77
if-eqz v0, :cond_19
.line 78
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
invoke-virtual {v0}, Lio/reactivex/j;->Pq()Ljava/lang/Throwable;
move-result-object v0
invoke-static {v0}, Lio/reactivex/internal/util/ExceptionHelper;->l(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
move-result-object v0
throw v0
.line 80
:cond_19
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
if-nez v0, :cond_4f
.line 2167
:try_start_1d
sget-boolean v0, Lio/reactivex/d/a;->bTG:Z
.line 83
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOZ:Ljava/util/concurrent/Semaphore;
invoke-virtual {v0}, Ljava/util/concurrent/Semaphore;->acquire()V
:try_end_24
.catch Ljava/lang/InterruptedException; {:try_start_1d .. :try_end_24} :catch_40
.line 90
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bPa:Ljava/util/concurrent/atomic/AtomicReference;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/j;
.line 91
iput-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
.line 4049
iget-object v1, v0, Lio/reactivex/j;->value:Ljava/lang/Object;
invoke-static {v1}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v1
.line 92
if-eqz v1, :cond_4f
.line 93
invoke-virtual {v0}, Lio/reactivex/j;->Pq()Ljava/lang/Throwable;
move-result-object v0
invoke-static {v0}, Lio/reactivex/internal/util/ExceptionHelper;->l(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
move-result-object v0
throw v0
.line 84
:catch_40
move-exception v0
.line 85
invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/c;->dispose()V
.line 86
invoke-static {v0}, Lio/reactivex/j;->i(Ljava/lang/Throwable;)Lio/reactivex/j;
move-result-object v1
iput-object v1, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
.line 87
invoke-static {v0}, Lio/reactivex/internal/util/ExceptionHelper;->l(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
move-result-object v0
throw v0
.line 96
:cond_4f
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
invoke-virtual {v0}, Lio/reactivex/j;->Pp()Z
move-result v0
return v0
.end method
.method public final next()Ljava/lang/Object;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.prologue
.line 101
invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/c;->hasNext()Z
move-result v0
if-eqz v0, :cond_10
.line 102
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
invoke-virtual {v0}, Lio/reactivex/j;->getValue()Ljava/lang/Object;
move-result-object v0
.line 103
const/4 v1, 0x0
iput-object v1, p0, Lio/reactivex/internal/operators/observable/c;->bOY:Lio/reactivex/j;
.line 104
return-object v0
.line 106
:cond_10
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method
.method public final onComplete()V
.registers 1
.prologue
.line 73
return-void
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 2
.prologue
.line 67
invoke-static {p1}, Lio/reactivex/d/a;->onError(Ljava/lang/Throwable;)V
.line 68
return-void
.end method
.method public final onNext(Lio/reactivex/j;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/j",
"<TT;>;)V"
}
.end annotation
.prologue
.line 59
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bPa:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_11
const/4 v0, 0x1
.line 60
:goto_9
if-eqz v0, :cond_10
.line 61
iget-object v0, p0, Lio/reactivex/internal/operators/observable/c;->bOZ:Ljava/util/concurrent/Semaphore;
invoke-virtual {v0}, Ljava/util/concurrent/Semaphore;->release()V
.line 63
:cond_10
return-void
.line 59
:cond_11
const/4 v0, 0x0
goto :goto_9
.end method
.method public final bridge synthetic onNext(Ljava/lang/Object;)V
.registers 2
.prologue
.line 49
check-cast p1, Lio/reactivex/j;
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/c;->onNext(Lio/reactivex/j;)V
return-void
.end method
.method public final remove()V
.registers 3
.prologue
.line 111
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "Read-only iterator."
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method