Package buzz.getcoco.iot.android
Class FactoryUtility
- java.lang.Object
-
- buzz.getcoco.iot.android.FactoryUtility
-
public class FactoryUtility extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FactoryUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> androidx.lifecycle.MutableLiveData<T>createLiveData(T initialValue)static <T,U extends androidx.lifecycle.LiveData<T>>
UnullIfEmpty(U liveData)static <T> voidpostValue(androidx.lifecycle.MutableLiveData<T> liveData, T value)
-
-
-
Method Detail
-
postValue
public static <T> void postValue(androidx.lifecycle.MutableLiveData<T> liveData, T value)
-
createLiveData
public static <T> androidx.lifecycle.MutableLiveData<T> createLiveData(T initialValue)
-
nullIfEmpty
public static <T,U extends androidx.lifecycle.LiveData<T>> U nullIfEmpty(U liveData)
-
-