IntStringMap

object IntStringMap
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

class Unit2[@specialized A, @specialized B]

Value members

Concrete methods

def ofSize(n: Int): IntStringMap

Create a Map that can hold n unique keys without resizing itself.

Create a Map that can hold n unique keys without resizing itself.

Note that the internal representation will allocate more space than requested to satisfy the requirements of internal alignment. Map uses arrays whose lengths are powers of two, and needs at least 33% of the map free to enable good hashing performance.

Example: Map.ofSizeInt, String.