Class BmSegmentSyncMap<P,T>
java.lang.Object
com._1c.g5.v8.bm.common.collections.BmSegmentSyncMap<P,T>
Deprecated.
A map with segment synchronization.
Implementation limited only for put/get/remove operations.
Iterations are not supported.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()Deprecated.Creates a copy of this map.voidclear()Deprecated.Clears map.booleancontainsKey(P key) Deprecated.Checks if the map contains the specified key.copyKeys()Deprecated.Copies keys.Deprecated.Gets the value of the mapping with the specified key.Deprecated.Gets underlying segment map by key.Deprecated.Gets underlying segment maps.protected longDeprecated.Gets hash salt value.Deprecated.Maps the specified key to the specified value.voidDeprecated.Copies all of the mappings from the specified map to this map.Deprecated.Removes the mapping with the specified key from this map.intsize()Deprecated.Returns the number of elements in this map.
-
Field Details
-
hashSalt
protected final long hashSaltDeprecated.Hash salt value
-
-
Constructor Details
-
BmSegmentSyncMap
public BmSegmentSyncMap(int segments) Deprecated.Constructs a new instance.- Parameters:
segments- The segment count.
-
-
Method Details
-
clear
public void clear()Deprecated.Clears map. -
getMap
Deprecated.Gets underlying segment map by key.- Parameters:
key- The key.- Returns:
- the underlying segment map, never
null.
-
get
Deprecated.Gets the value of the mapping with the specified key.- Parameters:
key- the key.- Returns:
- the value of the mapping with the specified key, or
nullif no mapping for the specified key is found.
-
put
Deprecated.Maps the specified key to the specified value.- Parameters:
key- the key.value- the value.- Returns:
- the value of the previous mapping with the specified key or
nullif there was no such mapping.
-
putAll
Deprecated.Copies all of the mappings from the specified map to this map.- Parameters:
map- the map to copy mappings from, may not benull.
-
remove
Deprecated.Removes the mapping with the specified key from this map.- Parameters:
key- the key of the mapping to remove.- Returns:
- the value of the removed mapping or
nullif no mapping for the specified key was found.
-
containsKey
Deprecated.Checks if the map contains the specified key.- Parameters:
key- the key to check.- Returns:
trueif the map contains the specified key,falseotherwise.
-
copyKeys
Deprecated.Copies keys.- Returns:
- a list containing all the keys contained in this map, never
null.
-
size
public int size()Deprecated.Returns the number of elements in this map.- Returns:
- the number of elements in this map.
-
asMap
Deprecated.Creates a copy of this map.- Returns:
- a
Mapcontaining all the mapping this map contains, nevernull.
-
getSegments
Deprecated.Gets underlying segment maps.- Returns:
- the underlying segment maps, never
null.
-
hashSaltValue
protected long hashSaltValue()Deprecated.Gets hash salt value.- Returns:
- hash salt value.
-
ConcurrentHashMap.