Package 

Class DiffPayload


  • 
    public class DiffPayload
    
                        

    A helper class for tracking changed models found by the com.airbnb.epoxy.DiffHelper to be included as a payload in the notifyItemChanged call.

    • Method Summary

      Modifier and Type Method Description
      static EpoxyModel<out Object> getModelFromPayload(List<Object> payloads, long modelId) Looks through the payloads list and returns the first model found with the given model id.
      • Methods inherited from class java.lang.Object

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

      • getModelFromPayload

        @Nullable() static EpoxyModel<out Object> getModelFromPayload(List<Object> payloads, long modelId)

        Looks through the payloads list and returns the first model found with the given model id. Thisassumes that the payloads list will only contain objects of type DiffPayload, and willthrow if an unexpected type is found.