78 lines
2.0 KiB
Java
78 lines
2.0 KiB
Java
package o;
|
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import androidx.recyclerview.widget.RecyclerView.zJl;
|
|
import java.util.List;
|
|
import o.CPd;
|
|
import o.HOS;
|
|
import o.XRa;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class Ran<T, VH extends RecyclerView.zJl> extends RecyclerView.Sts<VH> {
|
|
final CPd<T> mDiffer;
|
|
private final CPd.HBt<T> mListener;
|
|
|
|
public void onCurrentListChanged(List<T> list, List<T> list2) {
|
|
}
|
|
|
|
public Ran(HOS.IeS<T> ieS) {
|
|
CPd.HBt<T> hBt = new CPd.HBt<T>(this) { // from class: o.Ran.4
|
|
final Ran d;
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
|
|
@Override // o.CPd.HBt
|
|
public final void b(List<T> list, List<T> list2) {
|
|
this.d.onCurrentListChanged(list, list2);
|
|
}
|
|
};
|
|
this.mListener = hBt;
|
|
CPd<T> cPd = new CPd<>(new gFq(this), new XRa.IeS(ieS).e());
|
|
this.mDiffer = cPd;
|
|
cPd.b.add(hBt);
|
|
}
|
|
|
|
protected Ran(XRa<T> xRa) {
|
|
CPd.HBt<T> hBt = new CPd.HBt<T>(this) { // from class: o.Ran.4
|
|
final Ran d;
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
|
|
@Override // o.CPd.HBt
|
|
public final void b(List<T> list, List<T> list2) {
|
|
this.d.onCurrentListChanged(list, list2);
|
|
}
|
|
};
|
|
this.mListener = hBt;
|
|
CPd<T> cPd = new CPd<>(new gFq(this), xRa);
|
|
this.mDiffer = cPd;
|
|
cPd.b.add(hBt);
|
|
}
|
|
|
|
public void submitList(List<T> list, Runnable runnable) {
|
|
this.mDiffer.d(list, runnable);
|
|
}
|
|
|
|
public List<T> getCurrentList() {
|
|
return this.mDiffer.f;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public T getItem(int i) {
|
|
return this.mDiffer.f.get(i);
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public int getItemCount() {
|
|
return this.mDiffer.f.size();
|
|
}
|
|
|
|
public void submitList(List<T> list) {
|
|
this.mDiffer.d(list, null);
|
|
}
|
|
}
|