toGdxSet

fun <Type : Any> GdxArray<Type>.toGdxSet(initialCapacity: Int = this.size, loadFactor: Float = defaultLoadFactor): GdxSet<Type>

Return

values copied from this array stored in a libGDX set.

Parameters

initialCapacity

initial capacity of the set. Will be resized if necessary. Defaults to array size.

loadFactor

decides how many elements the set might contain in relation to its total capacity before it is resized.


fun <Key> GdxMap<Key, *>.toGdxSet(): ObjectSet<Key>

Return

keys from this map stored in an ObjectSet.


fun <Type> Iterable<Type>.toGdxSet(initialCapacity: Int = defaultSetSize, loadFactor: Float = defaultLoadFactor): GdxSet<Type>

Return

values copied from this iterable stored in a libGDX set.

Parameters

initialCapacity

initial capacity of the set. Will be resized if necessary.

loadFactor

decides how many elements the set might contain in relation to its total capacity before it is resized.


fun <Type> Array<Type>.toGdxSet(initialCapacity: Int = this.size, loadFactor: Float = defaultLoadFactor): GdxSet<Type>

Return

values copied from this iterable stored in a libGDX set.

Parameters

initialCapacity

initial capacity of the set. Will be resized if necessary. Defaults to this array size.

loadFactor

decides how many elements the set might contain in relation to its total capacity before it is resized.


fun IntArray.toGdxSet(initialCapacity: Int = this.size, loadFactor: Float = defaultLoadFactor): IntSet

Return

values copied from this iterable stored in an optimized libGDX int set.

Parameters

initialCapacity

initial capacity of the set. Will be resized if necessary. Defaults to this array size.

loadFactor

decides how many elements the set might contain in relation to its total capacity before it is resized.