FastArrayList

Constructors

Link copied to clipboard
expect constructor()
expect constructor(initialCapacity: Int)
expect 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.

actual constructor()
actual constructor(initialCapacity: Int)
actual constructor(elements: Collection<E>)

Properties

Link copied to clipboard
expect open override val size: Int
actual open override val size: Int
actual open override val size: Int
Link copied to clipboard

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
open fun addAll(elements: FastArrayList<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, size: Int)
open fun addAll(elements: FastArrayList<E>): Boolean
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)
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
fun Iterable<MRectangle>.bounds(target: MRectangle = MRectangle()): MRectangle
fun Iterable<MPoint>.bounds(out: MRectangle = MRectangle(), bb: MBoundsBuilder = MBoundsBuilder()): MRectangle
fun List<MPoint>.bounds(out: MRectangle = MRectangle(), bb: MBoundsBuilder = MBoundsBuilder()): MRectangle
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: @UnsafeVariance E): Boolean
actual open operator override fun contains(element: E): Boolean
open operator override fun contains(element: E): Boolean
Link copied to clipboard
expect open override fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean
expect open override fun containsAll(elements: Collection<E>): Boolean
open override fun containsAll(elements: Collection<E>): Boolean
Link copied to clipboard
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)

Does nothing in this FastArrayList implementation.

actual fun ensureCapacity(minCapacity: Int)
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
inline fun List<Curves>.fastForEachBezier(block: (Bezier) -> 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
inline fun <T> Collection<T>.fastRandom(): T
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: @UnsafeVariance 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
expect open override fun isEmpty(): Boolean
open override fun isEmpty(): Boolean
Link copied to clipboard
expect open operator override fun iterator(): MutableIterator<E>
expect open operator override fun iterator(): MutableIterator<E>
open operator override fun iterator(): MutableIterator<E>
Link copied to clipboard
expect open override fun lastIndexOf(element: @UnsafeVariance 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>
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>
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 List<TrapezoidInt>.pointInside(x: Int, y: Int, assumeSorted: Boolean = false): TrapezoidInt?
Link copied to clipboard
fun <T> List<T>.random(random: Random = Random): T
Link copied to clipboard
fun <T> List<T>.randomWithWeights(weights: List<Double>, random: Random = Random): T
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
expect 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
abstract fun removeRange(fromIndex: Int, toIndex: Int)
open override fun removeRange(fromIndex: Int, toIndex: Int)
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
expect 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
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
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, size: Int)
open 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>
expect 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
@JvmName(name = "ListCurve_toCurves")
fun List<Bezier>.toCurves(closed: Boolean): Curves
@JvmName(name = "ListCurves_toCurves")
fun List<Curves>.toCurves(closed: Boolean = this.last().closed): Curves
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
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
Link copied to clipboard
fun List<Curves>.toStrokePointsList(info: StrokeInfo, mode: StrokePointsMode = StrokePointsMode.NON_SCALABLE_POS, generateDebug: Boolean = false, forceClosed: Boolean? = null): List<StrokePoints>
fun List<Curves>.toStrokePointsList(width: Double, join: LineJoin = LineJoin.MITER, startCap: LineCap = LineCap.BUTT, endCap: LineCap = LineCap.BUTT, miterLimit: Double = 10.0, mode: StrokePointsMode = StrokePointsMode.NON_SCALABLE_POS, lineDash: DoubleList? = null, lineDashOffset: Double = 0.0, generateDebug: Boolean = false, forceClosed: Boolean? = null): List<StrokePoints>
Link copied to clipboard
fun List<Curve>.toVectorPath(out: VectorPath = VectorPath()): VectorPath
Link copied to clipboard
Link copied to clipboard
expect fun trimToSize()
actual fun trimToSize()

Does nothing in this FastArrayList implementation.

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