Class BmLongSegmentSyncMap<T>
- java.lang.Object
- 
- com._1c.g5.v8.bm.common.collections.BmLongSegmentSyncMap<T>
 
- 
- All Implemented Interfaces:
- IBmLongMap<T>
 
 public class BmLongSegmentSyncMap<T> extends Object implements IBmLongMap<T> A Long map with segment synchronization. Implementation limited only for put/get/remove operations. Iterations are not supported.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com._1c.g5.v8.bm.common.collections.IBmLongMapIBmLongMap.IEntry<V>
 
- 
 - 
Constructor SummaryConstructors Constructor Description BmLongSegmentSyncMap(int segmentCount)Constructs a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Removes all mappings from this hash map, leaving it empty.booleancontainsKey(long key)Checks if the map contains the specified key.Iterable<IBmLongMap.IEntry<T>>entryIterable()Returns aIterableview of the entries in this map.Tget(long key)Returns the value of the mapping with the specified key.booleanisEmpty()Returns whether this map is empty.Collection<Long>keys()Gets keys contained in this map.Tput(long key, T value)Maps the specified key to the specified value.voidputAll(Map<Long,T> map)Copies all of the mappings from the specified map to this map.Tremove(long key)Removes the mapping with the specified key from this map.intsize()Returns the number of elements in this map.Collection<T>values()Gets values contained in this map.
 
- 
- 
- 
Method Detail- 
clearpublic void clear() Description copied from interface:IBmLongMapRemoves all mappings from this hash map, leaving it empty.- Specified by:
- clearin interface- IBmLongMap<T>
- See Also:
- IBmLongMap.isEmpty(),- IBmLongMap.size()
 
 - 
getpublic T get(long key) Description copied from interface:IBmLongMapReturns the value of the mapping with the specified key.- Specified by:
- getin interface- IBmLongMap<T>
- Parameters:
- key- the key.
- Returns:
- the value of the mapping with the specified key, or nullif no mapping for the specified key is found.
 
 - 
putpublic T put(long key, T value) Description copied from interface:IBmLongMapMaps the specified key to the specified value.- Specified by:
- putin interface- IBmLongMap<T>
- Parameters:
- key- the key.
- value- the value.
- Returns:
- the value of any previous mapping with the specified key or
         nullif there was no such mapping.
 
 - 
putAllpublic void putAll(Map<Long,T> map) Copies all of the mappings from the specified map to this map.- Parameters:
- map- the map to copy mappings from, may not be- null.
 
 - 
removepublic T remove(long key) Description copied from interface:IBmLongMapRemoves the mapping with the specified key from this map.- Specified by:
- removein interface- IBmLongMap<T>
- 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.
 
 - 
containsKeypublic boolean containsKey(long key) Description copied from interface:IBmLongMapChecks if the map contains the specified key.- Specified by:
- containsKeyin interface- IBmLongMap<T>
- Parameters:
- key- the key to check.
- Returns:
- trueif the map contains the specified key,- falseotherwise.
 
 - 
entryIterablepublic Iterable<IBmLongMap.IEntry<T>> entryIterable() Description copied from interface:IBmLongMapReturns aIterableview of the entries in this map.- Specified by:
- entryIterablein interface- IBmLongMap<T>
- Returns:
 
 - 
keyspublic Collection<Long> keys() Description copied from interface:IBmLongMapGets keys contained in this map.- Specified by:
- keysin interface- IBmLongMap<T>
- Returns:
- a collection of keys, never null.
 
 - 
valuespublic Collection<T> values() Description copied from interface:IBmLongMapGets values contained in this map.- Specified by:
- valuesin interface- IBmLongMap<T>
- Returns:
- a collection of values, never null.
 
 - 
sizepublic int size() Description copied from interface:IBmLongMapReturns the number of elements in this map.- Specified by:
- sizein interface- IBmLongMap<T>
- Returns:
- the number of elements in this map.
 
 - 
isEmptypublic boolean isEmpty() Description copied from interface:IBmLongMapReturns whether this map is empty.- Specified by:
- isEmptyin interface- IBmLongMap<T>
- Returns:
- trueif this map has no elements,- falseotherwise.
- See Also:
- IBmLongMap.size()
 
 
- 
 
-