getMapKey

open fun <K, V> getMapKey(@NonNull map: Map<K, V>, @Nullable val: V): K

Finds the mapping key for Object val where Objects.equals(val, entry.value)

Return

Key of mapping or null if no such mapping exists

Parameters

map

The map to find the Object in

val

The object to find the key of