I have List object of FeedProvider one feedprovider included List of ViewModels. I want to get hashcode of one viewmodel object.
@Override
public long getItemId(int position) {
int sectionPostion = getSectionForAdapterPosition(position);
int positionItem = getPositionOfItemInSection(sectionPostion, position);
return feedDataProviders.get(sectionPostion - 1).getTileViewModelList().get(positionItem).hashCode();
}
But I got IndexOutOfBoundsException. What I am doing wrong?
Hello
I have
List
object ofFeedProvider
one feedprovider includedList
of ViewModels. I want to get hashcode of one viewmodel object.But I got IndexOutOfBoundsException. What I am doing wrong?