getStableIdFor

open fun getStableIdFor(item: T?): Long

Used to get stable ids for androidx.recyclerview.widget.RecyclerView.Adapter but only if androidx.recyclerview.widget.RecyclerView.Adapter.setHasStableIds is set to true.

The identifiable id of each item should unique, and if non exists then this function should return androidx.recyclerview.widget.RecyclerView.NO_ID