AsyncDifferConfig


public final class AsyncDifferConfig

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

Type of items in the lists, and being compared.

Summary

Nested types

public final class AsyncDifferConfig.Builder

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 getDiffCallback()