.class public final Lio/reactivex/rxjava3/internal/jdk8/b; .super Ljava/util/concurrent/CompletableFuture; .source "CompletionStageConsumer.java" # interfaces .implements Lai/y; .implements Lai/s0; .implements Lai/d; # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/util/concurrent/CompletableFuture<", "TT;>;", "Lai/y<", "TT;>;", "Lai/s0<", "TT;>;", "Lai/d;" } .end annotation # instance fields .field public final a:Ljava/util/concurrent/atomic/AtomicReference; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/concurrent/atomic/AtomicReference<", "Lio/reactivex/rxjava3/disposables/c;", ">;" } .end annotation .end field .field public final b:Z .field public final c:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TT;" } .end annotation .end field # direct methods .method public constructor (ZLjava/lang/Object;)V .locals 0 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0, 0x0 } names = { "hasDefault", "defaultItem" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(ZTT;)V" } .end annotation .line 1 invoke-direct {p0}, Ljava/util/concurrent/CompletableFuture;->()V .line 2 iput-boolean p1, p0, Lio/reactivex/rxjava3/internal/jdk8/b;->b:Z .line 3 iput-object p2, p0, Lio/reactivex/rxjava3/internal/jdk8/b;->c:Ljava/lang/Object; .line 4 new-instance p1, Ljava/util/concurrent/atomic/AtomicReference; invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicReference;->()V iput-object p1, p0, Lio/reactivex/rxjava3/internal/jdk8/b;->a:Ljava/util/concurrent/atomic/AtomicReference; return-void .end method # virtual methods .method public a()V .locals 1 .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/b;->a:Ljava/util/concurrent/atomic/AtomicReference; invoke-static {v0}, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z return-void .end method .method public b()V .locals 2 .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/b;->a:Ljava/util/concurrent/atomic/AtomicReference; sget-object v1, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/rxjava3/internal/disposables/DisposableHelper; invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V return-void .end method .method public cancel(Z)Z .locals 0 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "mayInterruptIfRunning" } .end annotation .line 1 invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/b;->a()V .line 2 invoke-super {p0, p1}, Ljava/util/concurrent/CompletableFuture;->cancel(Z)Z move-result p1 return p1 .end method .method public complete(Ljava/lang/Object;)Z .locals 0 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "value" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(TT;)Z" } .end annotation .line 1 invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/b;->a()V .line 2 invoke-super {p0, p1}, Ljava/util/concurrent/CompletableFuture;->complete(Ljava/lang/Object;)Z move-result p1 return p1 .end method .method public completeExceptionally(Ljava/lang/Throwable;)Z .locals 0 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "ex" } .end annotation .line 1 invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/b;->a()V .line 2 invoke-super {p0, p1}, Ljava/util/concurrent/CompletableFuture;->completeExceptionally(Ljava/lang/Throwable;)Z move-result p1 return p1 .end method .method public onComplete()V .locals 2 .line 1 iget-boolean v0, p0, Lio/reactivex/rxjava3/internal/jdk8/b;->b:Z if-eqz v0, :cond_0 .line 2 iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/b;->c:Ljava/lang/Object; invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/internal/jdk8/b;->complete(Ljava/lang/Object;)Z goto :goto_0 .line 3 :cond_0 new-instance v0, Ljava/util/NoSuchElementException; const-string v1, "The source was empty" invoke-direct {v0, v1}, Ljava/util/NoSuchElementException;->(Ljava/lang/String;)V invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/internal/jdk8/b;->completeExceptionally(Ljava/lang/Throwable;)Z :goto_0 return-void .end method .method public onError(Ljava/lang/Throwable;)V .locals 1 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "t" } .end annotation .line 1 invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/b;->b()V .line 2 invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/internal/jdk8/b;->completeExceptionally(Ljava/lang/Throwable;)Z move-result v0 if-nez v0, :cond_0 .line 3 invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V :cond_0 return-void .end method .method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V .locals 1 .param p1 # Lio/reactivex/rxjava3/disposables/c; .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "d" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/b;->a:Ljava/util/concurrent/atomic/AtomicReference; invoke-static {v0, p1}, Lio/reactivex/rxjava3/internal/disposables/DisposableHelper;->setOnce(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/rxjava3/disposables/c;)Z return-void .end method .method public onSuccess(Ljava/lang/Object;)V .locals 0 .param p1 # Ljava/lang/Object; .annotation build Lio/reactivex/rxjava3/annotations/NonNull; .end annotation .end param .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/jdk8/b;->b()V .line 2 invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/internal/jdk8/b;->complete(Ljava/lang/Object;)Z return-void .end method