Package 

Class EpoxyDiffLogger


  • 
    public class EpoxyDiffLogger
    extends RecyclerView.AdapterDataObserver
                        

    This data observer can be registered with an Epoxy adapter or controller to log all item change events. This may be useful to use in debug builds in order to observe model updates and monitor for issues.

    You may want to look for unexpected item updates to catch improper hashCode/equals implementations in your models.

    Additionally, you may want to look for frequent or unnecessary updates as an opportunity for optimization.

    • Method Summary

      Modifier and Type Method Description
      void onItemRangeChanged(int positionStart, int itemCount)
      void onItemRangeChanged(int positionStart, int itemCount, @Nullable() Object payload)
      void onItemRangeInserted(int positionStart, int itemCount)
      void onItemRangeRemoved(int positionStart, int itemCount)
      void onItemRangeMoved(int fromPosition, int toPosition, int itemCount)
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.AdapterDataObserver

        onChanged, onItemRangeChanged, onItemRangeInserted, onItemRangeMoved, onItemRangeRemoved, onStateRestorationPolicyChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait