IntArraySet

@ApiStatus.Experimental
class IntArraySet(initialCapacity: Int)

Simple dynamic array-based MutableSet implementation for integers. This class provides basic functionality similar to HashSet<Int>, but is optimized for integer storage.

Since

1.8.4

Constructors

Link copied to clipboard
constructor(initialCapacity: Int)

Properties

Link copied to clipboard
var size: Int

Functions

Link copied to clipboard
fun add(value: Int): Boolean
Link copied to clipboard
fun clear()
Link copied to clipboard
operator fun contains(value: Int): Boolean
Link copied to clipboard
Link copied to clipboard
fun remove(value: Int): Int
Link copied to clipboard