LazyLayoutKeyIndexMap


A key-index mapping that can be used by the LazyLayoutItemProvider to keep track of indices and keys in LazyLayout.

Summary

Public functions

Int
getIndex(key: Any)
Cmn
Any?
getKey(index: Int)
Cmn

Public functions

getIndex

fun getIndex(key: Any): Int
Returns
Int

current index for given key or -1 if not found.

getKey

fun getKey(index: Int): Any?
Returns
Any?

key for a given index if it is known, or null otherwise.