apkfuckery/com.discord/smali/androidx/lifecycle/Transformations.smali
2020-11-14 03:19:56 +00:00

142 lines
4.5 KiB
Smali

.class public Landroidx/lifecycle/Transformations;
.super Ljava/lang/Object;
.source "Transformations.java"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static distinctUntilChanged(Landroidx/lifecycle/LiveData;)Landroidx/lifecycle/LiveData;
.locals 2
.param p0 # Landroidx/lifecycle/LiveData;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<X:",
"Ljava/lang/Object;",
">(",
"Landroidx/lifecycle/LiveData<",
"TX;>;)",
"Landroidx/lifecycle/LiveData<",
"TX;>;"
}
.end annotation
new-instance v0, Landroidx/lifecycle/MediatorLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MediatorLiveData;-><init>()V
new-instance v1, Landroidx/lifecycle/Transformations$3;
invoke-direct {v1, v0}, Landroidx/lifecycle/Transformations$3;-><init>(Landroidx/lifecycle/MediatorLiveData;)V
invoke-virtual {v0, p0, v1}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
return-object v0
.end method
.method public static map(Landroidx/lifecycle/LiveData;Landroidx/arch/core/util/Function;)Landroidx/lifecycle/LiveData;
.locals 2
.param p0 # Landroidx/lifecycle/LiveData;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/arch/core/util/Function;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<X:",
"Ljava/lang/Object;",
"Y:",
"Ljava/lang/Object;",
">(",
"Landroidx/lifecycle/LiveData<",
"TX;>;",
"Landroidx/arch/core/util/Function<",
"TX;TY;>;)",
"Landroidx/lifecycle/LiveData<",
"TY;>;"
}
.end annotation
new-instance v0, Landroidx/lifecycle/MediatorLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MediatorLiveData;-><init>()V
new-instance v1, Landroidx/lifecycle/Transformations$1;
invoke-direct {v1, v0, p1}, Landroidx/lifecycle/Transformations$1;-><init>(Landroidx/lifecycle/MediatorLiveData;Landroidx/arch/core/util/Function;)V
invoke-virtual {v0, p0, v1}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
return-object v0
.end method
.method public static switchMap(Landroidx/lifecycle/LiveData;Landroidx/arch/core/util/Function;)Landroidx/lifecycle/LiveData;
.locals 2
.param p0 # Landroidx/lifecycle/LiveData;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/arch/core/util/Function;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<X:",
"Ljava/lang/Object;",
"Y:",
"Ljava/lang/Object;",
">(",
"Landroidx/lifecycle/LiveData<",
"TX;>;",
"Landroidx/arch/core/util/Function<",
"TX;",
"Landroidx/lifecycle/LiveData<",
"TY;>;>;)",
"Landroidx/lifecycle/LiveData<",
"TY;>;"
}
.end annotation
new-instance v0, Landroidx/lifecycle/MediatorLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MediatorLiveData;-><init>()V
new-instance v1, Landroidx/lifecycle/Transformations$2;
invoke-direct {v1, p1, v0}, Landroidx/lifecycle/Transformations$2;-><init>(Landroidx/arch/core/util/Function;Landroidx/lifecycle/MediatorLiveData;)V
invoke-virtual {v0, p0, v1}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
return-object v0
.end method