PersistentMap
A generic persistent collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key.
Modification operations return new instances of the persistent map with the modification applied.
Type Parameters
the type of map keys. The map is invariant on its key type.
the type of map values. The persistent map is covariant on its value type.
Types
A generic builder of the persistent map. Builder exposes its modification operations through the MutableMap interface.
Functions
Returns a new builder with the same contents as this map.
Returns an empty persistent map.
Returns a new persistent map with the specified key and its corresponding value removed, or this instance if it contains no mapping for the key.
Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys array, or this instance if there are no entries to remove.
Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys collection, or this instance if there are no entries to remove.
Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys sequence, or this instance if there are no entries to remove.
Returns a new persistent map with the provided modifications applied, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with entries from the specified key-value pairs added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with an entry from the specified key-value pair added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with keys and values from the specified map associated, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with keys and values from the specified m map associated, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with entries from the specified key-value pairs added, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with keys and values from the specified map associated, or this instance if no modifications were made in the result of this operation.
Returns a new persistent map with the specified key and its corresponding value removed, or this instance if it contains no mapping for the key.