gdxMapOf

fun <Key, Value> gdxMapOf(initialCapacity: Int = defaultMapSize, loadFactor: Float = defaultLoadFactor): GdxMap<Key, Value>

Return

a new ObjectMap.

Parameters

initialCapacity

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

loadFactor

decides under what load the map is resized.


inline fun <Key, Value> gdxMapOf(vararg keysToValues: Pair<Key, Value>, initialCapacity: Int = defaultMapSize, loadFactor: Float = defaultLoadFactor): GdxMap<Key, Value>

Return

a new ObjectMap.

Parameters

keysToValues

will be added to the map.

initialCapacity

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

loadFactor

decides under what load the map is resized.