interface ProximityMap.Context<UK>
A context instance for a ProximityMap
that acts as a factory for every instance of this type of collection.
Type parameters
Name | Description |
---|---|
UK | the upper key type bound for which the context can be used |
Properties
distanceFunction
The function used to compute the distance between stored keys and any research key
distanceFunction
Definition
readonly distanceFunction: DistanceFunction<UK>;
hashMapContext
The context used by the internal HashMap
hashMapContext
Definition
readonly hashMapContext:
HashMap.Context
<UK>;
Methods
createBuilder
Creates a builder given the optional non-empty source map
createBuilder
Definition
createBuilder<K extends UK, V>(source?:
ProximityMap.NonEmpty
<K, V>):
ProximityMap.Builder
<K, V>;
Type parameters
Name | Constraints | Description |
---|---|---|
K | UK | |
V |
Parameters
Name | Type | Description |
---|---|---|
source | ProximityMap.NonEmpty <K, V> | Optional non-empty map used to fill the builder |