MaybeCache$CacheDisposable.smali
.class final Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "MaybeCache.java"
# interfaces
.implements Lio/reactivex/disposables/Disposable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/maybe/MaybeCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "CacheDisposable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/internal/operators/maybe/MaybeCache<",
"TT;>;>;",
"Lio/reactivex/disposables/Disposable;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x5060cba6deb671f3L
# instance fields
.field final actual:Lio/reactivex/MaybeObserver;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/MaybeObserver<",
"-TT;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lio/reactivex/MaybeObserver;Lio/reactivex/internal/operators/maybe/MaybeCache;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/MaybeObserver<",
"-TT;>;",
"Lio/reactivex/internal/operators/maybe/MaybeCache<",
"TT;>;)V"
}
.end annotation
.line 181
.local p0, "this":Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable;, "Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable<TT;>;"
.local p1, "actual":Lio/reactivex/MaybeObserver;, "Lio/reactivex/MaybeObserver<-TT;>;"
.local p2, "parent":Lio/reactivex/internal/operators/maybe/MaybeCache;, "Lio/reactivex/internal/operators/maybe/MaybeCache<TT;>;"
invoke-direct {p0, p2}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
.line 182
iput-object p1, p0, Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable;->actual:Lio/reactivex/MaybeObserver;
.line 183
return-void
.end method
# virtual methods
.method public dispose()V
.registers 2
.line 187
.local p0, "this":Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable;, "Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable<TT;>;"
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/internal/operators/maybe/MaybeCache;
.line 188
.local v0, "mc":Lio/reactivex/internal/operators/maybe/MaybeCache;, "Lio/reactivex/internal/operators/maybe/MaybeCache<TT;>;"
if-eqz v0, :cond_c
.line 189
invoke-virtual {v0, p0}, Lio/reactivex/internal/operators/maybe/MaybeCache;->remove(Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable;)V
.line 191
:cond_c
return-void
.end method
.method public isDisposed()Z
.registers 2
.line 195
.local p0, "this":Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable;, "Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable<TT;>;"
invoke-virtual {p0}, Lio/reactivex/internal/operators/maybe/MaybeCache$CacheDisposable;->get()Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return v0
.end method