AsyncDifferConfig


public final class AsyncDifferConfig<T>


Configuration object for ListAdapter, AsyncListDiffer, and similar background-thread list diffing adapter logic.

At minimum, defines item diffing behavior with a DiffUtil.ItemCallback, used to compute item differences to pass to a RecyclerView adapter.

Parameters
<T>

Type of items in the lists, and being compared.

Summary

Nested types

public final class AsyncDifferConfig.Builder<T>

Builder class for AsyncDifferConfig.

Public methods

getBackgroundThreadExecutor

Added in 1.0.0
public @NonNull Executor getBackgroundThreadExecutor()

getDiffCallback

Added in 1.0.0
public @NonNull DiffUtil.ItemCallback<T> getDiffCallback()