W3cubDocs

/Kotlin

RandomAccess

Platform and version requirements: JS (1.1), Native (1.3)
interface RandomAccess
Platform and version requirements: JVM (1.1)
typealias RandomAccess = RandomAccess

Marker interface indicating that the List implementation supports fast indexed access.

Inheritors

ArrayList

Provides a MutableList implementation, which uses a resizable array as its backing storage.

Platform and version requirements:
class ArrayList<E> : MutableList<E>, RandomAccess
Platform and version requirements: JVM (1.1)
typealias ArrayList<E> = ArrayList<E>
Platform and version requirements: JS (1.1)
open class ArrayList<E> : 
    AbstractMutableList<E>, 
    MutableList<E>, 
    RandomAccess
Platform and version requirements: Native (1.3)
class ArrayList<E> : 
    MutableList<E>, 
    RandomAccess, 
    AbstractMutableList<E>

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-random-access.html