IntArrayList

class IntArrayList(capacity: Int = 7, var shouldGrow: Boolean = true) : Collection<Int>

Int growable ArrayList without boxing.

Constructors

Link copied to clipboard
Link copied to clipboard
fun IntArrayList(vararg other: Int)
Link copied to clipboard
fun IntArrayList(capacity: Int = 7, shouldGrow: Boolean = true)

Types

Link copied to clipboard
object Companion

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
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
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
fun getOrNull(index: Int): Int?
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
open operator override fun iterator(): Iterator<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
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 pop(): Int
Link copied to clipboard
fun removeAt(index: Int): Int
fun removeAt(index: Int, count: Int): Int
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 subList(fromIndex: Int, toIndex: Int): List<Int>
Link copied to clipboard
fun swap(indexA: Int, indexB: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
var shouldGrow: Boolean = true
Link copied to clipboard
open override var size: Int

Extensions

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)