-
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.
-
-
Constructor Summary
Constructors Constructor Description EpoxyDiffLogger(String tag)
-
Method Summary
Modifier and Type Method Description voidonItemRangeChanged(int positionStart, int itemCount)voidonItemRangeChanged(int positionStart, int itemCount, @Nullable() Object payload)voidonItemRangeInserted(int positionStart, int itemCount)voidonItemRangeRemoved(int positionStart, int itemCount)voidonItemRangeMoved(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
-
-
Constructor Detail
-
EpoxyDiffLogger
EpoxyDiffLogger(String tag)
-
-
Method Detail
-
onItemRangeChanged
void onItemRangeChanged(int positionStart, int itemCount)
-
onItemRangeChanged
void onItemRangeChanged(int positionStart, int itemCount, @Nullable() Object payload)
-
onItemRangeInserted
void onItemRangeInserted(int positionStart, int itemCount)
-
onItemRangeRemoved
void onItemRangeRemoved(int positionStart, int itemCount)
-
onItemRangeMoved
void onItemRangeMoved(int fromPosition, int toPosition, int itemCount)
-
-
-
-