Class 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>>
      U
      nullIfEmpty​(U liveData)  
      static <T> void postValue​(androidx.lifecycle.MutableLiveData<T> liveData, T value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FactoryUtility

        public FactoryUtility()
    • 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)