350 lines
7.7 KiB
Smali
350 lines
7.7 KiB
Smali
.class public final Lrx/subjects/BehaviorSubject;
|
|
.super Lrx/subjects/Subject;
|
|
.source "BehaviorSubject.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lrx/subjects/Subject<",
|
|
"TT;TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final bRd:[Ljava/lang/Object;
|
|
|
|
|
|
# instance fields
|
|
.field private final bRe:Lrx/subjects/b;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/subjects/b<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
sput-object v0, Lrx/subjects/BehaviorSubject;->bRd:[Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Lrx/Observable$a;Lrx/subjects/b;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Observable$a<",
|
|
"TT;>;",
|
|
"Lrx/subjects/b<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lrx/subjects/Subject;-><init>(Lrx/Observable$a;)V
|
|
|
|
iput-object p2, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static LI()Lrx/subjects/BehaviorSubject;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">()",
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Lrx/subjects/BehaviorSubject;->f(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static bT(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;)",
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-static {p0, v0}, Lrx/subjects/BehaviorSubject;->f(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static f(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;Z)",
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lrx/subjects/b;
|
|
|
|
invoke-direct {v0}, Lrx/subjects/b;-><init>()V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {p0}, Lrx/internal/a/g;->bJ(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
iput-object p0, v0, Lrx/subjects/b;->latest:Ljava/lang/Object;
|
|
|
|
:cond_0
|
|
new-instance p0, Lrx/subjects/BehaviorSubject$1;
|
|
|
|
invoke-direct {p0, v0}, Lrx/subjects/BehaviorSubject$1;-><init>(Lrx/subjects/b;)V
|
|
|
|
iput-object p0, v0, Lrx/subjects/b;->onAdded:Lrx/functions/Action1;
|
|
|
|
iget-object p0, v0, Lrx/subjects/b;->onAdded:Lrx/functions/Action1;
|
|
|
|
iput-object p0, v0, Lrx/subjects/b;->onTerminated:Lrx/functions/Action1;
|
|
|
|
new-instance p0, Lrx/subjects/BehaviorSubject;
|
|
|
|
invoke-direct {p0, v0, v0}, Lrx/subjects/BehaviorSubject;-><init>(Lrx/Observable$a;Lrx/subjects/b;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getValue()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
iget-object v0, v0, Lrx/subjects/b;->latest:Ljava/lang/Object;
|
|
|
|
invoke-static {v0}, Lrx/internal/a/g;->bM(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static {v0}, Lrx/internal/a/g;->bN(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final onCompleted()V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
iget-object v0, v0, Lrx/subjects/b;->latest:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
iget-boolean v0, v0, Lrx/subjects/b;->active:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
:cond_0
|
|
invoke-static {}, Lrx/internal/a/g;->Ks()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
invoke-virtual {v1, v0}, Lrx/subjects/b;->bU(Ljava/lang/Object;)[Lrx/subjects/b$b;
|
|
|
|
move-result-object v1
|
|
|
|
array-length v2, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_1
|
|
|
|
aget-object v4, v1, v3
|
|
|
|
invoke-virtual {v4, v0}, Lrx/subjects/b$b;->bV(Ljava/lang/Object;)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onError(Ljava/lang/Throwable;)V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
iget-object v0, v0, Lrx/subjects/b;->latest:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
iget-boolean v0, v0, Lrx/subjects/b;->active:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
:cond_0
|
|
invoke-static {p1}, Lrx/internal/a/g;->K(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
invoke-virtual {v1, p1}, Lrx/subjects/b;->bU(Ljava/lang/Object;)[Lrx/subjects/b$b;
|
|
|
|
move-result-object v1
|
|
|
|
array-length v2, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_2
|
|
|
|
aget-object v4, v1, v3
|
|
|
|
:try_start_0
|
|
invoke-virtual {v4, p1}, Lrx/subjects/b$b;->bV(Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception v4
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
:cond_1
|
|
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:goto_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-static {v0}, Lrx/a/b;->aj(Ljava/util/List;)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
iget-object v0, v0, Lrx/subjects/b;->latest:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
iget-boolean v0, v0, Lrx/subjects/b;->active:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
:cond_0
|
|
invoke-static {p1}, Lrx/internal/a/g;->bJ(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->bRe:Lrx/subjects/b;
|
|
|
|
iput-object p1, v0, Lrx/subjects/b;->latest:Ljava/lang/Object;
|
|
|
|
invoke-virtual {v0}, Lrx/subjects/b;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lrx/subjects/b$a;
|
|
|
|
iget-object v0, v0, Lrx/subjects/b$a;->bRs:[Lrx/subjects/b$b;
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
aget-object v3, v0, v2
|
|
|
|
invoke-virtual {v3, p1}, Lrx/subjects/b$b;->bV(Ljava/lang/Object;)V
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|