.class public final Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber; .super Ljava/util/concurrent/atomic/AtomicReference; .source "LambdaSubscriber.java" # interfaces .implements Lai/r; .implements Lok/e; .implements Lio/reactivex/rxjava3/disposables/c; .implements Lio/reactivex/rxjava3/observers/g; # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/util/concurrent/atomic/AtomicReference<", "Lok/e;", ">;", "Lai/r<", "TT;>;", "Lok/e;", "Lio/reactivex/rxjava3/disposables/c;", "Lio/reactivex/rxjava3/observers/g;" } .end annotation # static fields .field private static final serialVersionUID:J = -0x64a12a8486b15cccL # instance fields .field public final onComplete:Lci/a; .field public final onError:Lci/g; .annotation system Ldalvik/annotation/Signature; value = { "Lci/g<", "-", "Ljava/lang/Throwable;", ">;" } .end annotation .end field .field public final onNext:Lci/g; .annotation system Ldalvik/annotation/Signature; value = { "Lci/g<", "-TT;>;" } .end annotation .end field .field public final onSubscribe:Lci/g; .annotation system Ldalvik/annotation/Signature; value = { "Lci/g<", "-", "Lok/e;", ">;" } .end annotation .end field # direct methods .method public constructor (Lci/g;Lci/g;Lci/a;Lci/g;)V .locals 0 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0, 0x0, 0x0, 0x0 } names = { "onNext", "onError", "onComplete", "onSubscribe" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lci/g<", "-TT;>;", "Lci/g<", "-", "Ljava/lang/Throwable;", ">;", "Lci/a;", "Lci/g<", "-", "Lok/e;", ">;)V" } .end annotation .line 1 invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;->()V .line 2 iput-object p1, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onNext:Lci/g; .line 3 iput-object p2, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onError:Lci/g; .line 4 iput-object p3, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onComplete:Lci/a; .line 5 iput-object p4, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onSubscribe:Lci/g; return-void .end method # virtual methods .method public cancel()V .locals 0 .line 1 invoke-static {p0}, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->cancel(Ljava/util/concurrent/atomic/AtomicReference;)Z return-void .end method .method public dispose()V .locals 0 .line 1 invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->cancel()V return-void .end method .method public hasCustomOnError()Z .locals 2 .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onError:Lci/g; sget-object v1, Lio/reactivex/rxjava3/internal/functions/Functions;->f:Lci/g; if-eq v0, v1, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 .end method .method public isDisposed()Z .locals 2 .line 1 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 sget-object v1, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper; if-ne v0, v1, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 .end method .method public onComplete()V .locals 2 .line 1 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 sget-object v1, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper; if-eq v0, v1, :cond_0 .line 2 invoke-virtual {p0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V .line 3 :try_start_0 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onComplete:Lci/a; invoke-interface {v0}, Lci/a;->run()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v0 .line 4 invoke-static {v0}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V .line 5 invoke-static {v0}, Lji/a;->Y(Ljava/lang/Throwable;)V :cond_0 :goto_0 return-void .end method .method public onError(Ljava/lang/Throwable;)V .locals 4 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "t" } .end annotation .line 1 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 sget-object v1, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper; if-eq v0, v1, :cond_0 .line 2 invoke-virtual {p0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V .line 3 :try_start_0 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onError:Lci/g; invoke-interface {v0, p1}, Lci/g;->accept(Ljava/lang/Object;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v0 .line 4 invoke-static {v0}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V .line 5 new-instance v1, Lio/reactivex/rxjava3/exceptions/CompositeException; const/4 v2, 0x2 new-array v2, v2, [Ljava/lang/Throwable; const/4 v3, 0x0 aput-object p1, v2, v3 const/4 p1, 0x1 aput-object v0, v2, p1 invoke-direct {v1, v2}, Lio/reactivex/rxjava3/exceptions/CompositeException;->([Ljava/lang/Throwable;)V invoke-static {v1}, Lji/a;->Y(Ljava/lang/Throwable;)V goto :goto_0 .line 6 :cond_0 invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V :goto_0 return-void .end method .method public onNext(Ljava/lang/Object;)V .locals 1 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "t" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation .line 1 invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->isDisposed()Z move-result v0 if-nez v0, :cond_0 .line 2 :try_start_0 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onNext:Lci/g; invoke-interface {v0, p1}, Lci/g;->accept(Ljava/lang/Object;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception p1 .line 3 invoke-static {p1}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V .line 4 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 check-cast v0, Lok/e; invoke-interface {v0}, Lok/e;->cancel()V .line 5 invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onError(Ljava/lang/Throwable;)V :cond_0 :goto_0 return-void .end method .method public onSubscribe(Lok/e;)V .locals 1 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "s" } .end annotation .line 1 invoke-static {p0, p1}, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->setOnce(Ljava/util/concurrent/atomic/AtomicReference;Lok/e;)Z move-result v0 if-eqz v0, :cond_0 .line 2 :try_start_0 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onSubscribe:Lci/g; invoke-interface {v0, p0}, Lci/g;->accept(Ljava/lang/Object;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v0 .line 3 invoke-static {v0}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V .line 4 invoke-interface {p1}, Lok/e;->cancel()V .line 5 invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/internal/subscribers/LambdaSubscriber;->onError(Ljava/lang/Throwable;)V :cond_0 :goto_0 return-void .end method .method public request(J)V .locals 1 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "n" } .end annotation .line 1 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object v0 check-cast v0, Lok/e; invoke-interface {v0, p1, p2}, Lok/e;->request(J)V return-void .end method