I have a generic class, like this
public abstract class BaseSimpleRecyclerAdapter<Model,
VH extends BaseSimpleRecyclerAdapter.BaseViewHolder> extends RecyclerView.Adapter<VH>
{
public abstract class BaseViewHolder extends RecyclerView.ViewHolder
{
///
}
}
i want to rewrite it by kotlin, but there is a problem
abstract class BaseRecyclerAdapter<Model, Holder: BaseRecyclerAdapter.BaseViewHolder>
: RecyclerView.Adapter<Holder>()
{
abstract inner class BaseViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView)
{
///
}
}