.class public final Lrx/subjects/BehaviorSubject; .super Lrx/subjects/Subject; .source "BehaviorSubject.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Lrx/subjects/Subject<", "TT;TT;>;" } .end annotation # instance fields .field public final e:Lu/r/b; .annotation system Ldalvik/annotation/Signature; value = { "Lu/r/b<", "TT;>;" } .end annotation .end field # direct methods .method public constructor (Lrx/Observable$a;Lu/r/b;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lrx/Observable$a<", "TT;>;", "Lu/r/b<", "TT;>;)V" } .end annotation invoke-direct {p0, p1}, Lrx/subjects/Subject;->(Lrx/Observable$a;)V iput-object p2, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; return-void .end method .method public static a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)", "Lrx/subjects/BehaviorSubject<", "TT;>;" } .end annotation const/4 v0, 0x1 invoke-static {p0, v0}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject; move-result-object p0 return-object p0 .end method .method public static a(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TT;Z)", "Lrx/subjects/BehaviorSubject<", "TT;>;" } .end annotation new-instance v0, Lu/r/b; invoke-direct {v0}, Lu/r/b;->()V if-eqz p1, :cond_0 invoke-static {p0}, Lu/m/a/h;->e(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 invoke-virtual {v0, p0}, Lu/r/b;->b(Ljava/lang/Object;)V :cond_0 new-instance p0, Lrx/subjects/BehaviorSubject$a; invoke-direct {p0, v0}, Lrx/subjects/BehaviorSubject$a;->(Lu/r/b;)V iput-object p0, v0, Lu/r/b;->onAdded:Lrx/functions/Action1; iget-object p0, v0, Lu/r/b;->onAdded:Lrx/functions/Action1; iput-object p0, v0, Lu/r/b;->onTerminated:Lrx/functions/Action1; new-instance p0, Lrx/subjects/BehaviorSubject; invoke-direct {p0, v0, v0}, Lrx/subjects/BehaviorSubject;->(Lrx/Observable$a;Lu/r/b;)V return-object p0 .end method .method public static p()Lrx/subjects/BehaviorSubject; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lrx/subjects/BehaviorSubject<", "TT;>;" } .end annotation const/4 v0, 0x0 const/4 v1, 0x0 invoke-static {v0, v1}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject; move-result-object v0 return-object v0 .end method # virtual methods .method public o()Ljava/lang/Object; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; invoke-virtual {v0}, Lu/r/b;->a()Ljava/lang/Object; move-result-object v0 invoke-static {v0}, Lu/m/a/h;->d(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_0 invoke-static {v0}, Lu/m/a/h;->a(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 onCompleted()V .locals 5 iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; invoke-virtual {v0}, Lu/r/b;->a()Ljava/lang/Object; move-result-object v0 if-eqz v0, :cond_0 iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; iget-boolean v0, v0, Lu/r/b;->active:Z if-eqz v0, :cond_1 :cond_0 sget-object v0, Lu/m/a/h;->a:Ljava/lang/Object; iget-object v1, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; invoke-virtual {v1, v0}, Lu/r/b;->c(Ljava/lang/Object;)[Lu/r/b$c; 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}, Lu/r/b$c;->b(Ljava/lang/Object;)V add-int/lit8 v3, v3, 0x1 goto :goto_0 :cond_1 return-void .end method .method public onError(Ljava/lang/Throwable;)V .locals 5 iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; invoke-virtual {v0}, Lu/r/b;->a()Ljava/lang/Object; move-result-object v0 if-eqz v0, :cond_0 iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; iget-boolean v0, v0, Lu/r/b;->active:Z if-eqz v0, :cond_3 :cond_0 invoke-static {p1}, Lu/m/a/h;->a(Ljava/lang/Throwable;)Ljava/lang/Object; move-result-object p1 const/4 v0, 0x0 iget-object v1, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; invoke-virtual {v1, p1}, Lu/r/b;->c(Ljava/lang/Object;)[Lu/r/b$c; 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}, Lu/r/b$c;->b(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;->()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}, Le/k/a/b/e/p/g;->a(Ljava/util/List;)V :cond_3 return-void .end method .method public onNext(Ljava/lang/Object;)V .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(TT;)V" } .end annotation iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; invoke-virtual {v0}, Lu/r/b;->a()Ljava/lang/Object; move-result-object v0 if-eqz v0, :cond_0 iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; iget-boolean v0, v0, Lu/r/b;->active:Z if-eqz v0, :cond_1 :cond_0 invoke-static {p1}, Lu/m/a/h;->e(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lu/r/b; invoke-virtual {v0, p1}, Lu/r/b;->a(Ljava/lang/Object;)[Lu/r/b$c; move-result-object v0 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}, Lu/r/b$c;->b(Ljava/lang/Object;)V add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_1 return-void .end method