DiffResult
This class holds the information about the result of a calculateDiff call.
You can consume the updates in a DiffResult via dispatchUpdatesTo or directly stream the results into a RecyclerView.Adapter via dispatchUpdatesTo.
Functions
Link copied to clipboard
Given a position in the new list, returns the position in the old list, or
NO_POSITION
if it was removed.Link copied to clipboard
Given a position in the old list, returns the position in the new list, or
NO_POSITION
if it was removed.Link copied to clipboard
Dispatches update operations to the given Callback.
Dispatches the update events to the given adapter.