FastArrayList

ArrayList that prevents isObject + jsInstanceOf on getter on Kotlin/JS This class should be temporal until Kotlin/JS fixes this issue.

ArrayList that prevents isObject + jsInstanceOf on getter on Kotlin/JS This class should be temporal until Kotlin/JS fixes this issue.

ArrayList that prevents isObject + jsInstanceOf on getter on Kotlin/JS This class should be temporal until Kotlin/JS fixes this issue.

Constructors

Link copied to clipboard
expect constructor()
expect constructor(initialCapacity: Int)
expect constructor(elements: Collection<E>)
actual constructor()
actual constructor(initialCapacity: Int)
actual constructor(elements: Collection<E>)
actual constructor()

Creates an empty FastArrayList.

actual constructor(initialCapacity: Int)

Creates an empty FastArrayList.

actual constructor(elements: Collection<E>)

Creates an FastArrayList filled from the elements collection.

Properties

Link copied to clipboard
var _size: Int
Link copied to clipboard
var array: Array<Any?>
Link copied to clipboard
Link copied to clipboard
expect open override val size: Int
actual open override val size: Int
actual open override val size: Int

Functions

Link copied to clipboard
expect open override fun add(element: E): Boolean
expect open override fun add(index: Int, element: E)
actual open override fun add(element: E): Boolean
actual open override fun add(index: Int, element: E)
actual open override fun add(element: E): Boolean
actual open override fun add(index: Int, element: E)
Link copied to clipboard
expect open override fun addAll(elements: Collection<E>): Boolean
expect open override fun addAll(index: Int, elements: Collection<E>): Boolean
expect open fun addAll(elements: FastArrayList<E>): Boolean
expect open fun addAll(elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
open override fun addAll(elements: FastArrayList<E>): Boolean
actual open override fun addAll(elements: Collection<E>): Boolean
actual open override fun addAll(index: Int, elements: Collection<E>): Boolean
open fun addAll(elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
actual open override fun addAll(elements: Collection<E>): Boolean
actual open override fun addAll(index: Int, elements: Collection<E>): Boolean
open override fun addAll(elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
open fun addAll(elements: FastArrayList<E>): Boolean
Link copied to clipboard
Link copied to clipboard
fun <T> Iterable<T>.associateByInt(block: (index: Int, value: T) -> Int): IntMap<T>
Link copied to clipboard
expect open override fun clear()
actual open override fun clear()
actual open override fun clear()
Link copied to clipboard
expect open operator override fun contains(element: E): Boolean
open operator override fun contains(element: E): Boolean
actual open operator override fun contains(element: E): Boolean
Link copied to clipboard
expect open override fun containsAll(elements: Collection<E>): Boolean
open override fun containsAll(elements: Collection<E>): Boolean
open override fun containsAll(elements: Collection<E>): Boolean
Link copied to clipboard
fun <T> List<T>.countMap(): Map<T, Int>
Link copied to clipboard
expect fun ensureCapacity(minCapacity: Int)
actual fun ensureCapacity(minCapacity: Int)
actual fun ensureCapacity(minCapacity: Int)

Does nothing in this FastArrayList implementation.

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
expect inline fun fastForEach(callback: (E) -> Unit)
actual inline fun fastForEach(callback: (E) -> Unit)
actual inline fun fastForEach(callback: (E) -> Unit)
Link copied to clipboard
inline fun <T> List<T>.fastForEach(callback: (T) -> Unit)
Link copied to clipboard
expect inline fun fastForEachReverse(callback: (E) -> Unit)
actual inline fun fastForEachReverse(callback: (E) -> Unit)
actual inline fun fastForEachReverse(callback: (E) -> Unit)
Link copied to clipboard
inline fun <T> List<T>.fastForEachReverse(callback: (T) -> Unit)
Link copied to clipboard
expect inline fun fastForEachReverseWithIndex(callback: (index: Int, value: E) -> Unit)
actual inline fun fastForEachReverseWithIndex(callback: (index: Int, value: E) -> Unit)
actual inline fun fastForEachReverseWithIndex(callback: (index: Int, value: E) -> Unit)
Link copied to clipboard
expect inline fun fastForEachWithIndex(callback: (index: Int, value: E) -> Unit)
actual inline fun fastForEachWithIndex(callback: (index: Int, value: E) -> Unit)
actual inline fun fastForEachWithIndex(callback: (index: Int, value: E) -> Unit)
Link copied to clipboard
inline fun <T> List<T>.fastForEachWithIndex(callback: (index: Int, value: T) -> Unit)
Link copied to clipboard
inline fun <T> FastArrayList<T>.fastForEachWithTemp(temp: FastArrayList<T>, callback: (T) -> Unit)
inline fun <T> List<T>.fastForEachWithTemp(temp: FastArrayList<T>, callback: (T) -> Unit)
Link copied to clipboard
inline fun <T> MutableList<T>.fastIterateRemove(callback: (T) -> Boolean): MutableList<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Comparable<T>> MutableList<T>.genericSort(left: Int = 0, right: Int = size - 1): MutableList<T>
Link copied to clipboard
fun <T : Comparable<T>> List<T>.genericSorted(left: Int = 0, right: Int = size - 1): List<T>
Link copied to clipboard
expect open operator override fun get(index: Int): E
actual open operator override fun get(index: Int): E
actual open operator override fun get(index: Int): E
Link copied to clipboard
fun <T> List<T>.getCyclic(index: Int): T
Link copied to clipboard
fun <T> List<T>.getCyclicOrNull(index: Int): T?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
expect open override fun indexOf(element: E): Int
actual open override fun indexOf(element: E): Int
actual open override fun indexOf(element: E): Int
Link copied to clipboard
expect open override fun isEmpty(): Boolean
open override fun isEmpty(): Boolean
open override fun isEmpty(): Boolean
Link copied to clipboard
expect open operator override fun iterator(): MutableIterator<E>
open operator override fun iterator(): MutableIterator<E>
open operator override fun iterator(): MutableIterator<E>
Link copied to clipboard
expect open override fun lastIndexOf(element: E): Int
actual open override fun lastIndexOf(element: E): Int
actual open override fun lastIndexOf(element: E): Int
Link copied to clipboard
expect open override fun listIterator(): MutableListIterator<E>
expect open override fun listIterator(index: Int): MutableListIterator<E>
open override fun listIterator(): MutableListIterator<E>
open override fun listIterator(index: Int): MutableListIterator<E>
open override fun listIterator(): MutableListIterator<E>
open override fun listIterator(index: Int): MutableListIterator<E>
Link copied to clipboard
inline fun <T> Iterable<T>.mapDouble(callback: (T) -> Double): DoubleArrayList
Link copied to clipboard
inline fun <T> Iterable<T>.mapFloat(callback: (T) -> Float): FloatArrayList
Link copied to clipboard
inline fun <T> Iterable<T>.mapInt(callback: (T) -> Int): IntArrayList
Link copied to clipboard
fun <T> Iterable<T>.multisorted(vararg props: KProperty1<T, Comparable<*>>): List<T>
Link copied to clipboard
inline fun <T, R> List<T>.parallelMap(crossinline transform: (T) -> R): List<R>
Link copied to clipboard
inline fun <T> List<T>.parallelMapInt(crossinline transform: (T) -> Int): IntArray
Link copied to clipboard
fun <T> List<T>.reader(): ListReader<T>
Link copied to clipboard
expect open override fun remove(element: E): Boolean
actual open override fun remove(element: E): Boolean
actual open override fun remove(element: E): Boolean
Link copied to clipboard
expect open override fun removeAll(elements: Collection<E>): Boolean
open override fun removeAll(elements: Collection<E>): Boolean
open override fun removeAll(elements: Collection<E>): Boolean
Link copied to clipboard
expect open override fun removeAt(index: Int): E
actual open override fun removeAt(index: Int): E
actual open override fun removeAt(index: Int): E
Link copied to clipboard
expect open override fun removeRange(fromIndex: Int, toIndex: Int)
actual open override fun removeRange(fromIndex: Int, toIndex: Int)
actual open override fun removeRange(fromIndex: Int, toIndex: Int)
Link copied to clipboard
open fun removeToSize(size: Int)
open fun removeToSize(size: Int)
open fun removeToSize(size: Int)
Link copied to clipboard
expect open override fun retainAll(elements: Collection<E>): Boolean
open override fun retainAll(elements: Collection<E>): Boolean
open override fun retainAll(elements: Collection<E>): Boolean
Link copied to clipboard
fun <T> MutableList<T>.reverse(fromIndex: Int, toIndex: Int)
Link copied to clipboard
fun <T> List<T>.rotated(offset: Int): List<T>
Link copied to clipboard
fun <T> List<T>.rotatedLeft(offset: Int = +1): List<T>
Link copied to clipboard
fun <T> List<T>.rotatedRight(offset: Int = +1): List<T>
Link copied to clipboard
fun <T> MutableList<T>.rotateLeft(offset: Int = +1)
Link copied to clipboard
fun <T> MutableList<T>.rotateRight(offset: Int = +1)
Link copied to clipboard
expect open operator override fun set(index: Int, element: E): E
actual open operator override fun set(index: Int, element: E): E
actual open operator override fun set(index: Int, element: E): E
Link copied to clipboard
expect open fun setAddAll(index: Int, elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
open fun setAddAll(index: Int, elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
open fun setAddAll(index: Int, elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
Link copied to clipboard
expect open fun setAll(index: Int, elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
open fun setAll(index: Int, elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
open override fun setAll(index: Int, elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
Link copied to clipboard
expect open override fun subList(fromIndex: Int, toIndex: Int): MutableList<E>
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<E>
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<E>
Link copied to clipboard
@JvmName(name = "sumOfFloat")
inline fun <T> Iterable<T>.sumOfDouble(selector: (T) -> Double): Double
Link copied to clipboard
@JvmName(name = "sumOfFloat")
inline fun <T> Iterable<T>.sumOfFloat(selector: (T) -> Float): Float
Link copied to clipboard
fun <T> MutableList<T>.swap(lIndex: Int, rIndex: Int)
Link copied to clipboard
fun <T : Comparable<T>> MutableList<T>.timSort(left: Int = 0, right: Int = size - 1): MutableList<T>
Link copied to clipboard
fun <T : Comparable<T>> List<T>.timSorted(): List<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> List<T>.toFastList(): List<T>
fun <T> FastArrayList<T>.toFastList(out: FastArrayList<T> = FastArrayList()): FastArrayList<T>
fun <T> List<T>.toFastList(out: FastArrayList<T> = FastArrayList()): FastArrayList<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
Link copied to clipboard
expect fun trimToSize()
actual fun trimToSize()
actual fun trimToSize()

Does nothing in this FastArrayList implementation.

Link copied to clipboard
fun <T> List<T>.withoutSortedDuplicates(out: ArrayList<T> = arrayListOf()): List<T>