DoubleArrayList

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

Double growable ArrayList without boxing.

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun add(values: DoubleArrayList)
fun add(v0: Double)
fun add(values: Iterable<Double>)
fun add(v0: Double, v1: Double)
fun add(v0: Double, v1: Double, v2: Double)
fun add(values: DoubleArray, offset: Int = 0, length: Int = values.size)
fun add(v0: Double, v1: Double, v2: Double, v3: Double)
fun add(v0: Double, v1: Double, v2: Double, v3: Double, v4: Double)
fun add(v0: Double, v1: Double, v2: Double, v3: Double, v4: Double, v5: Double)
Link copied to clipboard
fun clear()
Link copied to clipboard
open operator override fun contains(element: Double): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Double>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(index: Int): Double
Link copied to clipboard
fun getAt(index: Int): Double

Gets an item of the list without boxing

Link copied to clipboard
fun getOrNull(index: Int): Double?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun indexOf(element: Double): Int
fun indexOf(value: Double, start: Int = 0, end: Int = this.size): Int
Link copied to clipboard
fun insertAt(index: Int, value: Double): DoubleArrayList
fun insertAt(index: Int, value: DoubleArray, start: Int = 0, end: Int = value.size): DoubleArrayList
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Double>
Link copied to clipboard
fun lastIndexOf(element: Double): Int
fun lastIndexOf(value: Double, start: Int = 0, end: Int = this.size): Int
Link copied to clipboard
Link copied to clipboard
operator fun plusAssign(value: DoubleArrayList)
operator fun plusAssign(value: Double)
operator fun plusAssign(value: DoubleArray)
operator fun plusAssign(value: Iterable<Double>)
Link copied to clipboard
fun pop(): Double
Link copied to clipboard
fun removeAt(index: Int): Double
fun removeAt(index: Int, count: Int): Double
Link copied to clipboard
operator fun set(index: Int, value: Double)
Link copied to clipboard
fun setAt(index: Int, value: Double): Double
Link copied to clipboard
fun subList(fromIndex: Int, toIndex: Int): List<Double>
Link copied to clipboard
fun swap(indexA: Int, indexB: Int)
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 DoubleArrayList.fastForEach(callback: (Double) -> Unit)
Link copied to clipboard
inline fun DoubleArrayList.fastForEachWithIndex(callback: (index: Int, value: Double) -> Unit)