.class public Landroidx/lifecycle/Transformations; .super Ljava/lang/Object; # direct methods .method private constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .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 system Ldalvik/annotation/Signature; value = { "(", "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;->()V new-instance v1, Landroidx/lifecycle/Transformations$1; invoke-direct {v1, v0, p1}, Landroidx/lifecycle/Transformations$1;->(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 system Ldalvik/annotation/Signature; value = { "(", "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;->()V new-instance v1, Landroidx/lifecycle/Transformations$2; invoke-direct {v1, p1, v0}, Landroidx/lifecycle/Transformations$2;->(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