.class final Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter; .super Ljava/util/concurrent/atomic/AtomicReference; .source "ObservableCreate.java" # interfaces .implements Lkh/b0; .implements Lio/reactivex/disposables/b; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lio/reactivex/internal/operators/observable/ObservableCreate; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "CreateEmitter" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/util/concurrent/atomic/AtomicReference<", "Lio/reactivex/disposables/b;", ">;", "Lkh/b0<", "TT;>;", "Lio/reactivex/disposables/b;" } .end annotation # static fields .field private static final serialVersionUID:J = -0x2faaddcf795eb55bL # instance fields .field public final observer:Lkh/g0; .annotation system Ldalvik/annotation/Signature; value = { "Lkh/g0<", "-TT;>;" } .end annotation .end field # direct methods .method public constructor (Lkh/g0;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lkh/g0<", "-TT;>;)V" } .end annotation .line 1 invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;->()V .line 2 iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->observer:Lkh/g0; return-void .end method # virtual methods .method public dispose()V .locals 0 .line 1 invoke-static {p0}, Lio/reactivex/internal/disposables/DisposableHelper;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z return-void .end method .method public isDisposed()Z .locals 1 .line 1 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 check-cast v0, Lio/reactivex/disposables/b; invoke-static {v0}, Lio/reactivex/internal/disposables/DisposableHelper;->isDisposed(Lio/reactivex/disposables/b;)Z move-result v0 return v0 .end method .method public onComplete()V .locals 1 .line 1 invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->isDisposed()Z move-result v0 if-nez v0, :cond_0 .line 2 :try_start_0 iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->observer:Lkh/g0; invoke-interface {v0}, Lkh/g0;->onComplete()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 3 invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->dispose()V goto :goto_0 :catchall_0 move-exception v0 invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->dispose()V throw v0 :cond_0 :goto_0 return-void .end method .method public onError(Ljava/lang/Throwable;)V .locals 1 .line 1 invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->tryOnError(Ljava/lang/Throwable;)Z move-result v0 if-nez v0, :cond_0 .line 2 invoke-static {p1}, Lwh/a;->Y(Ljava/lang/Throwable;)V :cond_0 return-void .end method .method public onNext(Ljava/lang/Object;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation if-nez p1, :cond_0 .line 1 new-instance p1, Ljava/lang/NullPointerException; const-string v0, "onNext called with null. Null values are generally not allowed in 2.x operators and sources." invoke-direct {p1, v0}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->onError(Ljava/lang/Throwable;)V return-void .line 2 :cond_0 invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->isDisposed()Z move-result v0 if-nez v0, :cond_1 .line 3 iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->observer:Lkh/g0; invoke-interface {v0, p1}, Lkh/g0;->onNext(Ljava/lang/Object;)V :cond_1 return-void .end method .method public serialize()Lkh/b0; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lkh/b0<", "TT;>;" } .end annotation .line 1 new-instance v0, Lio/reactivex/internal/operators/observable/ObservableCreate$SerializedEmitter; invoke-direct {v0, p0}, Lio/reactivex/internal/operators/observable/ObservableCreate$SerializedEmitter;->(Lkh/b0;)V return-object v0 .end method .method public setCancellable(Lph/f;)V .locals 1 .line 1 new-instance v0, Lio/reactivex/internal/disposables/CancellableDisposable; invoke-direct {v0, p1}, Lio/reactivex/internal/disposables/CancellableDisposable;->(Lph/f;)V invoke-virtual {p0, v0}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->setDisposable(Lio/reactivex/disposables/b;)V return-void .end method .method public setDisposable(Lio/reactivex/disposables/b;)V .locals 0 .line 1 invoke-static {p0, p1}, Lio/reactivex/internal/disposables/DisposableHelper;->set(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/b;)Z return-void .end method .method public toString()Ljava/lang/String; .locals 3 const/4 v0, 0x2 new-array v0, v0, [Ljava/lang/Object; .line 1 const-class v1, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter; invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String; move-result-object v1 const/4 v2, 0x0 aput-object v1, v0, v2 invoke-super {p0}, Ljava/util/concurrent/atomic/AtomicReference;->toString()Ljava/lang/String; move-result-object v1 const/4 v2, 0x1 aput-object v1, v0, v2 const-string v1, "%s{%s}" invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public tryOnError(Ljava/lang/Throwable;)Z .locals 1 if-nez p1, :cond_0 .line 1 new-instance p1, Ljava/lang/NullPointerException; const-string v0, "onError called with null. Null values are generally not allowed in 2.x operators and sources." invoke-direct {p1, v0}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V .line 2 :cond_0 invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->isDisposed()Z move-result v0 if-nez v0, :cond_1 .line 3 :try_start_0 iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->observer:Lkh/g0; invoke-interface {v0, p1}, Lkh/g0;->onError(Ljava/lang/Throwable;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 4 invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->dispose()V const/4 p1, 0x1 return p1 :catchall_0 move-exception p1 invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableCreate$CreateEmitter;->dispose()V throw p1 :cond_1 const/4 p1, 0x0 return p1 .end method