<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
interface LazyLayoutKeyIndexMap
```


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


## Functions



<h2 id="getindex-key">getIndex</h2>

```kotlin
fun getIndex(key: Any): Int
```


#### Returns

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





<hr class="docs-overload-divider">


<h2 id="getkey-index">getKey</h2>

```kotlin
fun getKey(index: Int): Any?
```


#### Returns

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