This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Builder<T : Any> internal constructor(private val list: List<T>, private val variable: Int) { | |
private val map: MutableMap<Class<*>, Int> = mutableMapOf() | |
private var handler: LayoutHandler? = null | |
private var onBind: OnBindListener? = null | |
private var onClick: OnClickListener? = null | |
private var onLongClick: OnLongClickListener? = null | |
inline fun <reified T : Any> map(@LayoutRes layout: Int) = map(T::class.java, layout) | |