FloatArrayList

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

Float growable ArrayList without boxing.

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun add(values: FloatArrayList)
fun add(value: Float)
fun add(values: Iterable<Float>)
fun add(values: FloatArray, offset: Int = 0, length: Int = values.size)
Link copied to clipboard
fun clear()
Link copied to clipboard
open operator override fun contains(element: Float): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Float>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(index: Int): Float
Link copied to clipboard
fun getAt(index: Int): Float

Gets an item of the list without boxing

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