I have generic class
public abstract class BaseAdapter<T> extends RecyclerView.Adapter {
private List<T> itemsList = new ArrayList<>();
//other override methods
@Override
public long getItemId(int position) {
return position;
}
}
What is the correct way to implementing getItemId()? I think that return position
like in many example is not correct.