ArrayList

expect fun ArrayList()(source)
expect fun ArrayList(initialCapacity: Int)(source)
expect fun <E> ArrayList(elements: Collection<E>)(source)
actual fun ArrayList()

Creates an empty ArrayList.


actual fun ArrayList(initialCapacity: Int = 0)

Creates an empty ArrayList.

Parameters

initialCapacity

initial capacity (ignored)


actual fun <E> ArrayList(elements: Collection<E>)

Creates an ArrayList filled from the elements collection.

actual fun ArrayList()
actual fun ArrayList(initialCapacity: Int)
actual fun <E> ArrayList(elements: Collection<E>)