RcvListDiffUtilCallBack

constructor(itemsTheSame: (oldItem: ITEM, newItem: ITEM) -> Boolean, contentsTheSame: (oldItem: ITEM, newItem: ITEM) -> Boolean, changePayload: (oldItem: ITEM, newItem: ITEM) -> Any?? = null)

Parameters

ITEM

The type of items to compare.

비교할 아이템의 타입.

itemsTheSame

Lambda to check if two items represent the same entity (e.g., ID comparison).

두 아이템이 같은 항목인지 확인하는 람다 (예: ID 비교).

contentsTheSame

Lambda to check if two items have the same content.

두 아이템의 내용이 같은지 확인하는 람다.

changePayload

Lambda to generate payload for partial updates when items are the same but contents differ (nullable).

아이템이 같지만 내용이 다를 때 부분 업데이트용 payload를 생성하는 람다 (null 가능).