CompletableSubject$CompletableDisposable.smali 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .class final Lio/reactivex/subjects/CompletableSubject$CompletableDisposable;
  2. .super Ljava/util/concurrent/atomic/AtomicReference;
  3. .source "CompletableSubject.java"
  4. # interfaces
  5. .implements Lio/reactivex/disposables/Disposable;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingClass;
  8. value = Lio/reactivex/subjects/CompletableSubject;
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x18
  12. name = "CompletableDisposable"
  13. .end annotation
  14. .annotation system Ldalvik/annotation/Signature;
  15. value = {
  16. "Ljava/util/concurrent/atomic/AtomicReference<",
  17. "Lio/reactivex/subjects/CompletableSubject;",
  18. ">;",
  19. "Lio/reactivex/disposables/Disposable;"
  20. }
  21. .end annotation
  22. # static fields
  23. .field private static final serialVersionUID:J = -0x6a2d77ea7e969284L
  24. # instance fields
  25. .field final actual:Lio/reactivex/CompletableObserver;
  26. # direct methods
  27. .method constructor <init>(Lio/reactivex/CompletableObserver;Lio/reactivex/subjects/CompletableSubject;)V
  28. .locals 0
  29. .line 211
  30. invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
  31. .line 212
  32. iput-object p1, p0, Lio/reactivex/subjects/CompletableSubject$CompletableDisposable;->actual:Lio/reactivex/CompletableObserver;
  33. .line 213
  34. invoke-virtual {p0, p2}, Lio/reactivex/subjects/CompletableSubject$CompletableDisposable;->lazySet(Ljava/lang/Object;)V
  35. return-void
  36. .end method
  37. # virtual methods
  38. .method public dispose()V
  39. .locals 1
  40. const/4 v0, 0x0
  41. .line 218
  42. invoke-virtual {p0, v0}, Lio/reactivex/subjects/CompletableSubject$CompletableDisposable;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
  43. move-result-object v0
  44. check-cast v0, Lio/reactivex/subjects/CompletableSubject;
  45. if-eqz v0, :cond_0
  46. .line 220
  47. invoke-virtual {v0, p0}, Lio/reactivex/subjects/CompletableSubject;->remove(Lio/reactivex/subjects/CompletableSubject$CompletableDisposable;)V
  48. :cond_0
  49. return-void
  50. .end method
  51. .method public isDisposed()Z
  52. .locals 1
  53. .line 226
  54. invoke-virtual {p0}, Lio/reactivex/subjects/CompletableSubject$CompletableDisposable;->get()Ljava/lang/Object;
  55. move-result-object v0
  56. if-nez v0, :cond_0
  57. const/4 v0, 0x1
  58. goto :goto_0
  59. :cond_0
  60. const/4 v0, 0x0
  61. :goto_0
  62. return v0
  63. .end method