I\'m trying to create a RecyclerView.Adapter with the following:
abstract class Base
1- If you use always SettingTitleViewHolder;
RecyclerView.Adapter
2- If you want to use any class which extended BaseSettingViewHolder;
RecyclerView.Adapter>
3- Use Any Object Type
RecyclerView.Adapter>
4- Use extended type parameter for adapter class
class SettingsMenuAdapter:RecyclerView.Adapter where : BaseSettingViewHolder<*>
5- Define out for abstract class type parameter.
abstract class BaseSettingsViewHolder RecyclerView.Adapter>
7- Read that article => "Generics in Kotlin" ;)