LongArrayList

class LongArrayList(initialCapacity: Int)

Offers a nice wrapper around LongArray, that handles resizing the underlying array as needed and provides a trimToSize() method to truncate the underlying array to the current number of elements.

Constructors

Link copied to clipboard
constructor(initialCapacity: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun add(long: Long)
Link copied to clipboard
Link copied to clipboard

Returns the underlying LongArray, truncating as necessary so that the returned array has the same size as the number of elements in it.

Link copied to clipboard
open override fun toString(): String