A default constructor creates a hashmap with initial size 8.
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 open hash map with the elements of a traversable collection.
Concatenates this open hash map with the elements of a traversable collection.
adds all elements produced by a TraversableOnce to this open hash map.
Adds a new key/value pair to this map.
adds two or more elements to this open hash 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 open hash map.
Removes a key from this map.
Removes two or more elements from this open hash map.
Applies a binary operator to a start value and all elements of this open hash map, going left to right.
Applies a binary operator to all elements of this open hash 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 open hash map to a string builder.
Appends all elements of this open hash 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 open hash map on which the function is defined.
Builds a new collection by applying a partial function to all elements of this open hash map on which the function is defined.
The factory companion object that builds instances of class OpenHashMap.
(f compose g)(x) == f(g(x))
Tests whether this map contains a binding for a key.
[use case] Copies elements of this open hash map to an array.
Copies elements of this open hash map to an array.
[use case] Copies values of this open hash map to an array.
Copies values of this open hash map to an array.
[use case] Copies values of this open hash map to an array.
Copies values of this open hash map to an array.
Copies all elements of this open hash map to a buffer.
Counts the number of elements in the open hash 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 open hash map.
Selects all elements of this open hash 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 open hash 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 open hash map and concatenating the results.
Builds a new collection by applying a function to all elements of this open hash map and concatenating the results.
[use case] Converts this open hash map of traversable collections into a open hash map in which all element collections are concatenated.
Converts this open hash map of traversable collections into a open hash map in which all element collections are concatenated.
Applies a binary operator to a start value and all elements of this open hash map, going left to right.
Applies a binary operator to all elements of this open hash map and a start value, going right to left.
Tests whether a predicate holds for all elements of this open hash map.
Loop over the key, value mappings of this map.
The generic builder that builds instances of OpenHashMap 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 open hash map into a map of open hash maps according to some discriminator function.
Partitions elements in fixed size open hash maps.
Tests whether this open hash map is known to have a finite size.
Returns a hash code value for the object.
Selects the first element of this open hash 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 open hash map can be repeatedly traversed.
An iterator over the elements 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 open hash map.
Builds a new collection by applying a function to all elements of this open hash 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 open hash map in a string.
Displays all elements of this open hash map in a string using a separator string.
Displays all elements of this open hash map in a string using start, end, and separator strings.
Tests whether the open hash 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 open hash map in two open hash 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.
Applies a binary operator to all elements of this open hash map, going left to right.
Optionally applies a binary operator to all elements of this open hash map, going left to right.
Applies a binary operator to all elements of this open hash map, going right to left.
Optionally applies a binary operator to all elements of this open hash map, going right to left.
Removes a key from this map, returning the value associated previously with that key as an option.
If given key is defined in this map, remove it and return associated value as an Option.
The collection of type open hash 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 open hash map.
Checks if the other iterable collection contains the same elements in the same order as this open hash 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 open hash 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 open hash map into a prefix/suffix pair according to a predicate.
Splits this open hash 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 open hash map to an array.
Converts this open hash map to an array.
Converts this open hash map to a mutable buffer.
Converts this open hash map to an indexed sequence.
Converts this open hash map to an iterable collection.
Returns an Iterator over the elements in this open hash map.
Converts this open hash map to a list.
Converts this open hash map to a map.
Converts this open hash map to a sequence.
Converts this open hash map to a set.
Converts this open hash map to a stream.
Converts this open hash map to a string.
Converts this open hash map to an unspecified Traversable.
Applies a transformation function to all values contained in this map.
Transposes this open hash map of traversable collections into a open hash map of open hash maps.
Converts this open hash 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 open hash map.
Creates a non-strict view of this open hash map.
Creates a non-strict filter of this open hash map.
[use case] Returns a open hash map formed from this open hash map and another iterable collection by combining corresponding elements in pairs.
Returns a open hash map formed from this open hash map and another iterable collection by combining corresponding elements in pairs.
[use case] Returns a open hash map formed from this open hash map and another iterable collection by combining corresponding elements in pairs.
Returns a open hash map formed from this open hash map and another iterable collection by combining corresponding elements in pairs.
[use case] Zips this open hash map with its indices.
Zips this open hash map with its indices.
A mutable hash map based on an open hashing scheme. The precise scheme is undefined, but it should make a reasonable effort to ensure that an insert with consecutive hash codes is not unneccessarily penalised. In particular, mappings of consecutive integer keys should work without significant performance loss.
type of the keys in this map.
type of the values in this map.
since
2.7
authors:
David MacIver