MutableRedBlackTreeMap

constructor(comparator: Comparator<in K> = Comparator { a, b -> naturalCompare(a, b) })(source)

Parameters

comparator

The ordering used by the tree. Defaults to natural ordering (keys must then implement Comparable); supply a comparator for other key types.

Type Parameters

K

The type of keys maintained by this map.

V

The type of mapped values.