Package soot.jimple.infoflow.collect
Class MyConcurrentHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<K,V>
soot.jimple.infoflow.collect.MyConcurrentHashMap<K,V>
- All Implemented Interfaces:
Serializable,ConcurrentMap<K,,V> Map<K,V>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for constructing new values on demandNested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionputIfAbsentElseGet(K key, MyConcurrentHashMap.IValueFactory<V> valueFactory) Puts the new key/value-pair if no mapping for the given key was in the in the map before, otherwise it returns the existing mapping.putIfAbsentElseGet(K key, V value) Puts the new key/value-pair if no mapping for the given key was in the in the map before, otherwise it returns the existing mapping.Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, valuesMethods inherited from class java.util.AbstractMap
clone
-
Constructor Details
-
MyConcurrentHashMap
public MyConcurrentHashMap()
-
-
Method Details
-
putIfAbsentElseGet
Puts the new key/value-pair if no mapping for the given key was in the in the map before, otherwise it returns the existing mapping.- Parameters:
key- The key to check and put if it is not already in the mapvalue- The value to put- Returns:
- The old value if one was present in the map for the given key, otherwise, the newly registered value
-
putIfAbsentElseGet
Puts the new key/value-pair if no mapping for the given key was in the in the map before, otherwise it returns the existing mapping.- Parameters:
key- The key to check and put if it is not already in the mapvalueFactory- The factory that creates the value to put into the map on demand- Returns:
- The old value if one was present in the map for the given key, otherwise, the newly registered value
-