SingleSubject$SingleDisposable.smali 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .class final Lio/reactivex/subjects/SingleSubject$SingleDisposable;
  2. .super Ljava/util/concurrent/atomic/AtomicReference;
  3. .source "SingleSubject.java"
  4. # interfaces
  5. .implements Lio/reactivex/disposables/Disposable;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingClass;
  8. value = Lio/reactivex/subjects/SingleSubject;
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x18
  12. name = "SingleDisposable"
  13. .end annotation
  14. .annotation system Ldalvik/annotation/Signature;
  15. value = {
  16. "<T:",
  17. "Ljava/lang/Object;",
  18. ">",
  19. "Ljava/util/concurrent/atomic/AtomicReference<",
  20. "Lio/reactivex/subjects/SingleSubject<",
  21. "TT;>;>;",
  22. "Lio/reactivex/disposables/Disposable;"
  23. }
  24. .end annotation
  25. # static fields
  26. .field private static final serialVersionUID:J = -0x6a2d77ea7e969284L
  27. # instance fields
  28. .field final actual:Lio/reactivex/SingleObserver;
  29. .annotation system Ldalvik/annotation/Signature;
  30. value = {
  31. "Lio/reactivex/SingleObserver<",
  32. "-TT;>;"
  33. }
  34. .end annotation
  35. .end field
  36. # direct methods
  37. .method constructor <init>(Lio/reactivex/SingleObserver;Lio/reactivex/subjects/SingleSubject;)V
  38. .locals 0
  39. .annotation system Ldalvik/annotation/Signature;
  40. value = {
  41. "(",
  42. "Lio/reactivex/SingleObserver<",
  43. "-TT;>;",
  44. "Lio/reactivex/subjects/SingleSubject<",
  45. "TT;>;)V"
  46. }
  47. .end annotation
  48. .line 236
  49. invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
  50. .line 237
  51. iput-object p1, p0, Lio/reactivex/subjects/SingleSubject$SingleDisposable;->actual:Lio/reactivex/SingleObserver;
  52. .line 238
  53. invoke-virtual {p0, p2}, Lio/reactivex/subjects/SingleSubject$SingleDisposable;->lazySet(Ljava/lang/Object;)V
  54. return-void
  55. .end method
  56. # virtual methods
  57. .method public dispose()V
  58. .locals 1
  59. const/4 v0, 0x0
  60. .line 243
  61. invoke-virtual {p0, v0}, Lio/reactivex/subjects/SingleSubject$SingleDisposable;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
  62. move-result-object v0
  63. check-cast v0, Lio/reactivex/subjects/SingleSubject;
  64. if-eqz v0, :cond_0
  65. .line 245
  66. invoke-virtual {v0, p0}, Lio/reactivex/subjects/SingleSubject;->remove(Lio/reactivex/subjects/SingleSubject$SingleDisposable;)V
  67. :cond_0
  68. return-void
  69. .end method
  70. .method public isDisposed()Z
  71. .locals 1
  72. .line 251
  73. invoke-virtual {p0}, Lio/reactivex/subjects/SingleSubject$SingleDisposable;->get()Ljava/lang/Object;
  74. move-result-object v0
  75. if-nez v0, :cond_0
  76. const/4 v0, 0x1
  77. goto :goto_0
  78. :cond_0
  79. const/4 v0, 0x0
  80. :goto_0
  81. return v0
  82. .end method