IntArrayList

class IntArrayList(capacity: Int = 7) : Collection<Int>

Int growable ArrayList without boxing.

Constructors

Link copied to clipboard
constructor(other: IntArrayList)
constructor(vararg other: Int)
constructor(capacity: Int = 7)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override var size: Int

Functions

Link copied to clipboard
fun add(values: IntArrayList)
fun add(v0: Int)
fun add(values: Iterable<Int>)
fun add(v0: Int, v1: Int)
fun add(v0: Int, v1: Int, v2: Int)
fun add(values: IntArray, offset: Int = 0, length: Int = values.size)
fun add(v0: Int, v1: Int, v2: Int, v3: Int)
fun add(v0: Int, v1: Int, v2: Int, v3: Int, v4: Int)
fun add(v0: Int, v1: Int, v2: Int, v3: Int, v4: Int, v5: Int)
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 IntArrayList.binarySearch(v: Int, fromIndex: Int = 0, toIndex: Int = size): BSearchResult
Link copied to clipboard
fun IntArrayList.binarySearchLeft(v: Int, fromIndex: Int = 0, toIndex: Int = size): Int
Link copied to clipboard
fun IntArrayList.binarySearchRight(v: Int, fromIndex: Int = 0, toIndex: Int = size): Int
Link copied to clipboard
fun Iterable<MRectangle>.bounds(target: MRectangle = MRectangle()): MRectangle
fun Iterable<MPoint>.bounds(out: MRectangle = MRectangle(), bb: MBoundsBuilder = MBoundsBuilder()): MRectangle
Link copied to clipboard
fun clear()
Link copied to clipboard
open operator override fun contains(element: Int): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Int>): Boolean
Link copied to clipboard
fun ensure(count: Int)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
inline fun IntArrayList.fastForEach(callback: (Int) -> Unit)
Link copied to clipboard
inline fun IntArrayList.fastForEachWithIndex(callback: (index: Int, value: Int) -> Unit)
Link copied to clipboard
inline fun <T> Collection<T>.fastRandom(): T
Link copied to clipboard
inline fun IntArrayList.filter(callback: (Int) -> Boolean): IntArrayList
Link copied to clipboard
fun first(): Int
Link copied to clipboard
operator fun get(index: Int): Int
Link copied to clipboard
fun getAt(index: Int): Int

Gets an item of the list without boxing

Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun indexOf(element: Int): Int
fun indexOf(value: Int, start: Int = 0, end: Int = this.size): Int
Link copied to clipboard
fun insertAt(index: Int, value: Int): IntArrayList
fun insertAt(index: Int, value: IntArray, start: Int = 0, end: Int = value.size): IntArrayList
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
Link copied to clipboard
open operator override fun iterator(): Iterator<Int>
Link copied to clipboard
fun last(): Int
Link copied to clipboard
fun lastIndexOf(element: Int): Int
fun lastIndexOf(value: Int, start: Int = 0, end: Int = this.size): Int
Link copied to clipboard
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 IntArrayList.mapInt(callback: (Int) -> Int): IntArrayList
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 IntArrayList.parallelMapInt(crossinline transform: (Int) -> Int): IntArray
Link copied to clipboard
operator fun plusAssign(value: IntArrayList)
operator fun plusAssign(value: Int)
operator fun plusAssign(value: IntArray)
operator fun plusAssign(value: Iterable<Int>)
Link copied to clipboard
fun removeAt(index: Int): Int
fun removeAt(index: Int, count: Int): Int
Link copied to clipboard
fun IntArrayList.reverse(start: Int = 0, end: Int = size)
Link copied to clipboard
Link copied to clipboard
operator fun set(index: Int, value: Int)
Link copied to clipboard
fun setAt(index: Int, value: Int): Int
Link copied to clipboard
fun IntArrayList.sort(start: Int = 0, end: Int = size, reversed: Boolean = false): IntArrayList
Link copied to clipboard
fun subList(fromIndex: Int, toIndex: Int): List<Int>
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 swap(indexA: Int, indexB: Int)
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