23 lines
1 KiB
Java
23 lines
1 KiB
Java
package com.discord.utilities.recycler;
|
|
|
|
import androidx.recyclerview.widget.DiffUtil;
|
|
import com.discord.utilities.recycler.DiffCreator;
|
|
import j0.k.b;
|
|
import kotlin.Pair;
|
|
/* compiled from: DiffCreator.kt */
|
|
public final class DiffCreator$subscribeToAsyncUpdateRequests$1<T, R> implements b<DiffCreator.UpdateRequest<T, VH>, Pair<? extends DiffCreator.UpdateRequest<T, VH>, ? extends DiffUtil.DiffResult>> {
|
|
public final /* synthetic */ DiffCreator this$0;
|
|
|
|
public DiffCreator$subscribeToAsyncUpdateRequests$1(DiffCreator diffCreator) {
|
|
this.this$0 = diffCreator;
|
|
}
|
|
|
|
@Override // j0.k.b
|
|
public /* bridge */ /* synthetic */ Object call(Object obj) {
|
|
return call((DiffCreator.UpdateRequest) ((DiffCreator.UpdateRequest) obj));
|
|
}
|
|
|
|
public final Pair<DiffCreator.UpdateRequest<T, VH>, DiffUtil.DiffResult> call(DiffCreator.UpdateRequest<T, VH> updateRequest) {
|
|
return new Pair<>(updateRequest, this.this$0.calculateDiffResult(updateRequest.getOldItems(), updateRequest.getNewItems()));
|
|
}
|
|
}
|