emptyMap

fun <K, V> emptyMap(): Map<K, V>(source)

Creates a fresh empty HashMap exposed through the read-only Map interface.

The result is not a shared singleton. Read-only access does not make the underlying map immutable.

Return

a new map with size zero.

Type Parameters

K

key type.

V

value type.

See also