A class supporting filtered operations.
Creates a new map containing two or more key/value mappings and all the key/value mappings of this map.
Creates a new map containing a new key/value mapping and all the key/value mappings of this map.
Creates a new map containing the key/value mappings provided by the specified traversable object and all the key/value mappings of this map.
[use case] Concatenates this concurrent map with the elements of a traversable collection.
Concatenates this concurrent map with the elements of a traversable collection.
adds all elements produced by a TraversableOnce to this concurrent map.
adds two or more elements to this concurrent map.
Adds a new key/value pair to this map.
Creates a new map with all the key/value mappings of this map except mappings with keys equal to any of the two or more specified keys.
Creates a new map with all the key/value mappings of this map except the key/value mapping with the specified key.
Creates a new map with all the key/value mappings of this map except mappings with keys equal to any of those provided by the specified traversable object.
Removes all elements produced by an iterator from this concurrent map.
Removes two or more elements from this concurrent map.
Removes a key from this map.
Applies a binary operator to a start value and all elements of this concurrent map, going left to right.
Applies a binary operator to all elements of this concurrent map and a start value, going right to left.
Appends all bindings of this map to a string builder using start, end, and separator strings.
Appends all elements of this concurrent map to a string builder.
Appends all elements of this concurrent map to a string builder using a separator string.
Composes this partial function with a transformation function that gets applied to results of this partial function.
Retrieves the value which is associated with the given key.
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind.
Removes all bindings from the map.
This method creates and returns a copy of the receiver object.
[use case] Builds a new collection by applying a partial function to all elements of this concurrent map on which the function is defined.
Builds a new collection by applying a partial function to all elements of this concurrent map on which the function is defined.
The factory companion object that builds instances of class ConcurrentMap.
(f compose g)(x) == f(g(x))
Tests whether this map contains a binding for a key.
[use case] Copies elements of this concurrent map to an array.
Copies elements of this concurrent map to an array.
[use case] Copies values of this concurrent map to an array.
Copies values of this concurrent map to an array.
[use case] Copies values of this concurrent map to an array.
Copies values of this concurrent map to an array.
Copies all elements of this concurrent map to a buffer.
Counts the number of elements in the concurrent map which satisfy a predicate.
Defines the default value computation for the map, returned when a key is not found The method implemented here throws an exception, but it might be overridden in subclasses.
Selects all elements except first n ones.
Selects all elements except last n ones.
Drops longest prefix of elements that satisfy a predicate.
The empty map of the same type as this map
Compares two maps structurally; i.
Tests whether a predicate holds for some of the elements of this concurrent map.
Selects all elements of this concurrent map which satisfy a predicate.
Filters this map by retaining only keys satisfying a predicate.
Returns a new map with all key/value pairs for which the predicate
p
returns true
.
Finds the first element of the concurrent map satisfying a predicate, if any.
None
if iterable is empty.
[use case] Builds a new collection by applying a function to all elements of this concurrent map and concatenating the results.
Builds a new collection by applying a function to all elements of this concurrent map and concatenating the results.
[use case] Converts this concurrent map of traversable collections into a concurrent map in which all element collections are concatenated.
Converts this concurrent map of traversable collections into a concurrent map in which all element collections are concatenated.
Applies a binary operator to a start value and all elements of this concurrent map, going left to right.
Applies a binary operator to all elements of this concurrent map and a start value, going right to left.
Tests whether a predicate holds for all elements of this concurrent map.
[use case] Applies a function f
to all elements of this concurrent map.
Applies a function f
to all elements of this concurrent map.
The generic builder that builds instances of ConcurrentMap at arbitrary element types.
Optionally returns the value associated with a key.
[use case] Returns the value associated with a key, or a default value if the key is not contained in the map.
Returns the value associated with a key, or a default value if the key is not contained in the map.
If given key is already in this map, returns associated value.
Partitions this concurrent map into a map of concurrent maps according to some discriminator function.
Partitions elements in fixed size concurrent maps.
Tests whether this concurrent map is known to have a finite size.
Returns a hash code value for the object.
Selects the first element of this concurrent map.
Optionally selects the first element.
Selects all elements except the last.
Tests whether this map contains a binding for a key.
Tests whether the map is empty.
Tests whether this concurrent map can be repeatedly traversed.
Creates a new iterator over all key/value pairs of this map
Collects all keys of this map in a set.
Creates an iterator for all keys.
Creates an iterator for all keys.
Selects the last element.
Optionally selects the last element.
Turns this partial function into an plain function returning an Option
result.
[use case] Builds a new collection by applying a function to all elements of this concurrent map.
Builds a new collection by applying a function to all elements of this concurrent map.
Creates a new builder by applying a transformation function to the results of this builder.
Transforms this map by applying a function to every retrieved value.
[use case] Finds the largest element.
Finds the largest element.
[use case] Finds the smallest element.
Finds the smallest element.
Displays all elements of this concurrent map in a string.
Displays all elements of this concurrent map in a string using a separator string.
Displays all elements of this concurrent map in a string using start, end, and separator strings.
Tests whether the concurrent map is not empty.
Composes this partial function with a fallback partial function which gets applied where this partial function is not defined.
Partitions this concurrent map in two concurrent maps according to a predicate.
[use case] Multiplies up the elements of this collection.
Multiplies up the elements of this collection.
returns a projection that can be used to call non-strict filter
,map
, and flatMap
methods that build projections
of the collection.
Adds a new key/value pair to this map and optionally returns previously bound value.
Associates the given key with a given value, unless the key was already associated with some other value.
Applies a binary operator to all elements of this concurrent map, going left to right.
Optionally applies a binary operator to all elements of this concurrent map, going left to right.
Applies a binary operator to all elements of this concurrent map, going right to left.
Optionally applies a binary operator to all elements of this concurrent map, going right to left.
Removes a key from this map, returning the value associated previously with that key as an option.
Removes the entry for the specified key if its currently mapped to the specified value.
If given key is defined in this map, remove it and return associated value as an Option.
Replaces the entry for the given key only if it was previously mapped to some value.
Replaces the entry for the given key only if it was previously mapped to a given value.
The collection of type concurrent map underlying this TraversableLike
object.
The result when this map is used as a builder
Retains only those mappings for which the predicate
p
returns true
.
[use case] Checks if the other iterable collection contains the same elements in the same order as this concurrent map.
Checks if the other iterable collection contains the same elements in the same order as this concurrent map.
Produces a collection containing cummulative results of applying the operator going left to right.
Produces a collection containing cummulative results of applying the operator going right to left.
The size of this concurrent map.
Gives a hint that one expects the result
of this builder
to have the same size as the given collection, plus some delta.
Gives a hint how many elements are expected to be added
when the next result
is called.
Gives a hint how many elements are expected to be added
when the next result
is called, together with an upper bound
given by the size of some other collection.
Selects an interval of elements.
Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.
Splits this concurrent map into a prefix/suffix pair according to a predicate.
Splits this concurrent map into two at a given position.
Defines the prefix of this object's toString
representation.
[use case] Sums up the elements of this collection.
Sums up the elements of this collection.
Selects all elements except the first.
Selects first n elements.
Selects last n elements.
Takes longest prefix of elements that satisfy a predicate.
[use case] Converts this concurrent map to an array.
Converts this concurrent map to an array.
Converts this concurrent map to a mutable buffer.
Converts this concurrent map to an indexed sequence.
Converts this concurrent map to an iterable collection.
Returns an Iterator over the elements in this concurrent map.
Converts this concurrent map to a list.
Converts this concurrent map to a map.
Converts this concurrent map to a sequence.
Converts this concurrent map to a set.
Converts this concurrent map to a stream.
Converts this concurrent map to a string.
Converts this concurrent map to an unspecified Traversable.
Applies a transformation function to all values contained in this map.
Transposes this concurrent map of traversable collections into a concurrent map of concurrent maps.
Converts this concurrent map of pairs into two collections of the first and second halfs of each pair.
Adds a new key/value pair to this map.
Creates a new map consisting of all key/value pairs of the current map plus a new pair of a given key and value.
Collects all values of this map in an iterable collection.
Creates an iterator for all values in this map.
Creates a non-strict view of a slice of this concurrent map.
Creates a non-strict view of this concurrent map.
Creates a non-strict filter of this concurrent map.
[use case] Returns a concurrent map formed from this concurrent map and another iterable collection by combining corresponding elements in pairs.
Returns a concurrent map formed from this concurrent map and another iterable collection by combining corresponding elements in pairs.
[use case] Returns a concurrent map formed from this concurrent map and another iterable collection by combining corresponding elements in pairs.
Returns a concurrent map formed from this concurrent map and another iterable collection by combining corresponding elements in pairs.
[use case] Zips this concurrent map with its indices.
Zips this concurrent map with its indices.
A template trait for mutable maps that allow concurrent access.
This is a base trait for all Scala concurrent map implementations. It provides all of the methods a
Map
does, with the difference that all the changes are atomic. It also describes methods specific to concurrent maps. Note: The concurrent maps do not acceptnull
for keys or values.the key type of the map
the value type of the map
since
2.8