mapCapacity

fun mapCapacity(expectedSize: Int): Int

Calculate the initial capacity of a map, based on Guava's com.google.common.collect.Maps.capacity approach.

Sources

(source)
Link copied to clipboard