NotificationLite.smali
.class public final Lrx/internal/operators/NotificationLite;
.super Ljava/lang/Object;
.source "NotificationLite.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lrx/internal/operators/NotificationLite$OnErrorSentinel;
}
.end annotation
# static fields
.field private static final ON_COMPLETED_SENTINEL:Ljava/lang/Object;
.field private static final ON_NEXT_NULL_SENTINEL:Ljava/lang/Object;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 1
new-instance v0, Lrx/internal/operators/NotificationLite$1;
invoke-direct {v0}, Lrx/internal/operators/NotificationLite$1;-><init>()V
sput-object v0, Lrx/internal/operators/NotificationLite;->ON_COMPLETED_SENTINEL:Ljava/lang/Object;
.line 2
new-instance v0, Lrx/internal/operators/NotificationLite$2;
invoke-direct {v0}, Lrx/internal/operators/NotificationLite$2;-><init>()V
sput-object v0, Lrx/internal/operators/NotificationLite;->ON_NEXT_NULL_SENTINEL:Ljava/lang/Object;
return-void
.end method
.method private constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static accept(Lrx/Observer;Ljava/lang/Object;)Z
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lrx/Observer<",
"-TT;>;",
"Ljava/lang/Object;",
")Z"
}
.end annotation
.line 1
sget-object v0, Lrx/internal/operators/NotificationLite;->ON_COMPLETED_SENTINEL:Ljava/lang/Object;
const/4 v1, 0x1
if-ne p1, v0, :cond_9
.line 2
invoke-interface {p0}, Lrx/Observer;->onCompleted()V
return v1
.line 3
:cond_9
sget-object v0, Lrx/internal/operators/NotificationLite;->ON_NEXT_NULL_SENTINEL:Ljava/lang/Object;
const/4 v2, 0x0
if-ne p1, v0, :cond_13
const/4 p1, 0x0
.line 4
invoke-interface {p0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
return v2
:cond_13
if-eqz p1, :cond_29
.line 5
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
const-class v3, Lrx/internal/operators/NotificationLite$OnErrorSentinel;
if-ne v0, v3, :cond_25
.line 6
check-cast p1, Lrx/internal/operators/NotificationLite$OnErrorSentinel;
iget-object p1, p1, Lrx/internal/operators/NotificationLite$OnErrorSentinel;->e:Ljava/lang/Throwable;
invoke-interface {p0, p1}, Lrx/Observer;->onError(Ljava/lang/Throwable;)V
return v1
.line 7
:cond_25
invoke-interface {p0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
return v2
.line 8
:cond_29
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "The lite notification can not be null"
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static completed()Ljava/lang/Object;
.registers 1
.line 1
sget-object v0, Lrx/internal/operators/NotificationLite;->ON_COMPLETED_SENTINEL:Ljava/lang/Object;
return-object v0
.end method
.method public static error(Ljava/lang/Throwable;)Ljava/lang/Object;
.registers 2
.line 1
new-instance v0, Lrx/internal/operators/NotificationLite$OnErrorSentinel;
invoke-direct {v0, p0}, Lrx/internal/operators/NotificationLite$OnErrorSentinel;-><init>(Ljava/lang/Throwable;)V
return-object v0
.end method
.method public static getError(Ljava/lang/Object;)Ljava/lang/Throwable;
.registers 1
.line 1
check-cast p0, Lrx/internal/operators/NotificationLite$OnErrorSentinel;
iget-object p0, p0, Lrx/internal/operators/NotificationLite$OnErrorSentinel;->e:Ljava/lang/Throwable;
return-object p0
.end method
.method public static getValue(Ljava/lang/Object;)Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Object;",
")TT;"
}
.end annotation
.line 1
sget-object v0, Lrx/internal/operators/NotificationLite;->ON_NEXT_NULL_SENTINEL:Ljava/lang/Object;
if-ne p0, v0, :cond_5
const/4 p0, 0x0
:cond_5
return-object p0
.end method
.method public static isCompleted(Ljava/lang/Object;)Z
.registers 2
.line 1
sget-object v0, Lrx/internal/operators/NotificationLite;->ON_COMPLETED_SENTINEL:Ljava/lang/Object;
if-ne p0, v0, :cond_6
const/4 p0, 0x1
goto :goto_7
:cond_6
const/4 p0, 0x0
:goto_7
return p0
.end method
.method public static isError(Ljava/lang/Object;)Z
.registers 1
.line 1
instance-of p0, p0, Lrx/internal/operators/NotificationLite$OnErrorSentinel;
return p0
.end method
.method public static isNext(Ljava/lang/Object;)Z
.registers 2
if-eqz p0, :cond_10
.line 1
invoke-static {p0}, Lrx/internal/operators/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_10
invoke-static {p0}, Lrx/internal/operators/NotificationLite;->isCompleted(Ljava/lang/Object;)Z
move-result p0
if-nez p0, :cond_10
const/4 p0, 0x1
goto :goto_11
:cond_10
const/4 p0, 0x0
:goto_11
return p0
.end method
.method public static isNull(Ljava/lang/Object;)Z
.registers 2
.line 1
sget-object v0, Lrx/internal/operators/NotificationLite;->ON_NEXT_NULL_SENTINEL:Ljava/lang/Object;
if-ne p0, v0, :cond_6
const/4 p0, 0x1
goto :goto_7
:cond_6
const/4 p0, 0x0
:goto_7
return p0
.end method
.method public static next(Ljava/lang/Object;)Ljava/lang/Object;
.registers 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)",
"Ljava/lang/Object;"
}
.end annotation
if-nez p0, :cond_4
.line 1
sget-object p0, Lrx/internal/operators/NotificationLite;->ON_NEXT_NULL_SENTINEL:Ljava/lang/Object;
:cond_4
return-object p0
.end method