MapRenameKey<K, V> extension
Rename keys in a copy.
- on
-
- Map<
K, V>
- Map<
Methods
-
renameKey(
K oldKey, K newKey) → Map< K, V> -
Available on Map<
New map withK, V> , provided by the MapRenameKey extensionoldKeyrenamed tonewKey; unchanged if oldKey absent. Audited: 2026-06-12 11:26 EDT -
renameKeys(
Map< K, K> oldToNew) → Map<K, V> -
Available on Map<
New map with keys renamed according toK, V> , provided by the MapRenameKey extensionoldToNew. Keys absent fromoldToNeware kept as-is. If two keys map to the same target, the later one in iteration order wins (a genuine collision is inherently lossy). Audited: 2026-06-12 11:26 EDT