ShortArrayList

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

Short growable ArrayList without boxing.

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun add(values: ShortArrayList)
fun add(v0: Short)
fun add(values: Iterable<Short>)
fun add(v0: Short, v1: Short)
fun add(v0: Short, v1: Short, v2: Short)
fun add(values: ShortArray, offset: Int = 0, length: Int = values.size)
fun add(v0: Short, v1: Short, v2: Short, v3: Short)
fun add(v0: Short, v1: Short, v2: Short, v3: Short, v4: Short)
fun add(v0: Short, v1: Short, v2: Short, v3: Short, v4: Short, v5: Short)
Link copied to clipboard
fun clear()
Link copied to clipboard
open operator override fun contains(element: Short): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Short>): 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): Short
Link copied to clipboard
fun getAt(index: Int): Short

Gets an item of the list without boxing

Link copied to clipboard
fun getOrNull(index: Int): Short?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun indexOf(element: Short): Int
fun indexOf(value: Short, start: Int = 0, end: Int = this.size): Int
Link copied to clipboard
fun insertAt(index: Int, value: Short): ShortArrayList
fun insertAt(index: Int, value: ShortArray, start: Int = 0, end: Int = value.size): ShortArrayList
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Short>
Link copied to clipboard
fun lastIndexOf(element: Short): Int
fun lastIndexOf(value: Short, start: Int = 0, end: Int = this.size): Int
Link copied to clipboard
Link copied to clipboard
operator fun plusAssign(value: ShortArrayList)
operator fun plusAssign(value: Short)
operator fun plusAssign(value: ShortArray)
operator fun plusAssign(value: Iterable<Short>)
Link copied to clipboard
fun pop(): Short
Link copied to clipboard
fun removeAt(index: Int): Short
fun removeAt(index: Int, count: Int): Short
Link copied to clipboard
operator fun set(index: Int, value: Short)
Link copied to clipboard
fun setAt(index: Int, value: Short): Short
Link copied to clipboard
fun subList(fromIndex: Int, toIndex: Int): List<Short>
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