MutableListEx

interface MutableListEx<E> : MutableList<E>

Inheritors

Properties

Link copied to clipboard
abstract override val size: Int
Link copied to clipboard

Functions

Link copied to clipboard
abstract override fun add(element: E): Boolean
abstract fun add(index: Int, element: E)
Link copied to clipboard
open fun addAll(elements: FastArrayList<E>): Boolean
open fun addAll(elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
abstract override fun addAll(elements: Collection<E>): Boolean
abstract fun addAll(index: Int, elements: Collection<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
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
abstract override fun clear()
Link copied to clipboard
abstract operator override fun contains(element: E): Boolean
Link copied to clipboard
abstract 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
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
inline fun <T> List<T>.fastForEachReverse(callback: (T) -> Unit)
Link copied to clipboard
inline fun <T> List<T>.fastForEachWithIndex(callback: (index: Int, value: T) -> Unit)
Link copied to clipboard
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
abstract operator 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
abstract fun indexOf(element: E): Int
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<E>
Link copied to clipboard
abstract fun lastIndexOf(element: E): Int
Link copied to clipboard
abstract override fun listIterator(): MutableListIterator<E>
abstract 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
abstract override fun remove(element: E): Boolean
Link copied to clipboard
abstract override fun removeAll(elements: Collection<E>): Boolean
Link copied to clipboard
abstract fun removeAt(index: Int): E
Link copied to clipboard
abstract fun removeRange(fromIndex: Int, toIndex: Int)
Link copied to clipboard
open fun removeToSize(size: Int)
Link copied to clipboard
abstract 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
abstract operator 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)
Link copied to clipboard
open fun setAll(index: Int, elements: FastArrayList<E>, offset: Int = 0, size: Int = elements.size - offset)
Link copied to clipboard
abstract 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> 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
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
fun <T> List<T>.withoutSortedDuplicates(out: ArrayList<T> = arrayListOf()): List<T>