# android.support.v7.util

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

# android.support.v7.util

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

## Interfaces

|----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| [ListUpdateCallback](https://developer.android.com/reference/android/support/v7/util/ListUpdateCallback) | An interface that can receive Update operations that are applied to a list. |

## Classes

|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdapterListUpdateCallback](https://developer.android.com/reference/android/support/v7/util/AdapterListUpdateCallback)         | ListUpdateCallback that dispatches update events to the given adapter.                                                                                                                                                                          |
| [AsyncListUtil](https://developer.android.com/reference/android/support/v7/util/AsyncListUtil)\<T\>                            | A utility class that supports asynchronous content loading.                                                                                                                                                                                     |
| [AsyncListUtil.DataCallback](https://developer.android.com/reference/android/support/v7/util/AsyncListUtil.DataCallback)\<T\>  | The callback that provides data access for[AsyncListUtil](https://developer.android.com/reference/android/support/v7/util/AsyncListUtil).                                                                                                       |
| [AsyncListUtil.ViewCallback](https://developer.android.com/reference/android/support/v7/util/AsyncListUtil.ViewCallback)       | The callback that links[AsyncListUtil](https://developer.android.com/reference/android/support/v7/util/AsyncListUtil)with the list view.                                                                                                        |
| [BatchingListUpdateCallback](https://developer.android.com/reference/android/support/v7/util/BatchingListUpdateCallback)       | Wraps a[ListUpdateCallback](https://developer.android.com/reference/android/support/v7/util/ListUpdateCallback)callback and batches operations that can be merged.                                                                              |
| [DiffUtil](https://developer.android.com/reference/android/support/v7/util/DiffUtil)                                           | DiffUtil is a utility class that can calculate the difference between two lists and output a list of update operations that converts the first list into the second one.                                                                        |
| [DiffUtil.Callback](https://developer.android.com/reference/android/support/v7/util/DiffUtil.Callback)                         | A Callback class used by DiffUtil while calculating the diff between two lists.                                                                                                                                                                 |
| [DiffUtil.DiffResult](https://developer.android.com/reference/android/support/v7/util/DiffUtil.DiffResult)                     | This class holds the information about the result of a[calculateDiff(Callback, boolean)](https://developer.android.com/reference/android/support/v7/util/DiffUtil#calculateDiff(android.support.v7.util.DiffUtil.Callback, boolean))call.       |
| [DiffUtil.ItemCallback](https://developer.android.com/reference/android/support/v7/util/DiffUtil.ItemCallback)\<T\>            | Callback for calculating the diff between two non-null items in a list.                                                                                                                                                                         |
| [SortedList](https://developer.android.com/reference/android/support/v7/util/SortedList)\<T\>                                  | A Sorted list implementation that can keep items in order and also notify for changes in the list such that it can be bound to a[RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter). |
| [SortedList.BatchedCallback](https://developer.android.com/reference/android/support/v7/util/SortedList.BatchedCallback)\<T2\> | A callback implementation that can batch notify events dispatched by the SortedList.                                                                                                                                                            |
| [SortedList.Callback](https://developer.android.com/reference/android/support/v7/util/SortedList.Callback)\<T2\>               | The class that controls the behavior of the[SortedList](https://developer.android.com/reference/android/support/v7/util/SortedList).                                                                                                            |

-

  ## Interfaces

  - [ListUpdateCallback](https://developer.android.com/reference/android/support/v7/util/ListUpdateCallback)
-

  ## Classes

  - [AdapterListUpdateCallback](https://developer.android.com/reference/android/support/v7/util/AdapterListUpdateCallback)
  - [AsyncListUtil](https://developer.android.com/reference/android/support/v7/util/AsyncListUtil)
  - [AsyncListUtil.DataCallback](https://developer.android.com/reference/android/support/v7/util/AsyncListUtil.DataCallback)
  - [AsyncListUtil.ViewCallback](https://developer.android.com/reference/android/support/v7/util/AsyncListUtil.ViewCallback)
  - [BatchingListUpdateCallback](https://developer.android.com/reference/android/support/v7/util/BatchingListUpdateCallback)
  - [DiffUtil](https://developer.android.com/reference/android/support/v7/util/DiffUtil)
  - [DiffUtil.Callback](https://developer.android.com/reference/android/support/v7/util/DiffUtil.Callback)
  - [DiffUtil.DiffResult](https://developer.android.com/reference/android/support/v7/util/DiffUtil.DiffResult)
  - [DiffUtil.ItemCallback](https://developer.android.com/reference/android/support/v7/util/DiffUtil.ItemCallback)
  - [SortedList](https://developer.android.com/reference/android/support/v7/util/SortedList)
  - [SortedList.BatchedCallback](https://developer.android.com/reference/android/support/v7/util/SortedList.BatchedCallback)
  - [SortedList.Callback](https://developer.android.com/reference/android/support/v7/util/SortedList.Callback)