IntDeque

open class IntDeque(initialCapacity: Int) : MutableCollection<Int>

Deque structure supporting constant time of appending/removing from the start or the end of the list when there is room in the underlying array.

Constructors

Link copied to clipboard
constructor()
constructor(initialCapacity: Int)

Properties

Link copied to clipboard
val first: Int
Link copied to clipboard
val last: Int
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun add(element: Int): Boolean
Link copied to clipboard
fun addAll(array: IntArray): Boolean
open override fun addAll(elements: Collection<Int>): Boolean
fun addAll(items: Iterable<Int>): Boolean
fun addAll(list: List<Int>): Boolean
Link copied to clipboard
Link copied to clipboard
fun addFirst(item: Int)
Link copied to clipboard
fun addLast(item: Int)
Link copied to clipboard
Link copied to clipboard
fun <T> Iterable<T>.associateByInt(block: (index: Int, value: T) -> Int): IntMap<T>
Link copied to clipboard
fun Iterable<MRectangle>.bounds(target: MRectangle = MRectangle()): MRectangle
fun Iterable<MPoint>.bounds(out: MRectangle = MRectangle(), bb: MBoundsBuilder = MBoundsBuilder()): MRectangle
Link copied to clipboard
open override 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
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
inline fun <T> Collection<T>.fastRandom(): T
Link copied to clipboard
operator fun get(index: Int): Int
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
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<Int>
Link copied to clipboard
inline fun <T> Iterable<T>.mapDouble(callback: (T) -> Double): DoubleArrayList
Link copied to clipboard
inline fun <T> Iterable<T>.mapFloat(callback: (T) -> Float): FloatArrayList
Link copied to clipboard
inline fun <T> Iterable<T>.mapInt(callback: (T) -> Int): IntArrayList
Link copied to clipboard
fun <T> Iterable<T>.multisorted(vararg props: KProperty1<T, Comparable<*>>): List<T>
Link copied to clipboard
open override fun remove(element: Int): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<Int>): Boolean
Link copied to clipboard
fun removeAt(index: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun retainAll(elements: Collection<Int>): Boolean
Link copied to clipboard
operator fun set(index: Int, value: Int)
Link copied to clipboard
@JvmName(name = "sumOfFloat")
inline fun <T> Iterable<T>.sumOfDouble(selector: (T) -> Double): Double
Link copied to clipboard
@JvmName(name = "sumOfFloat")
inline fun <T> Iterable<T>.sumOfFloat(selector: (T) -> Float): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String