Package kmer.lab.concurrentbuckethashmap
Class ConcurrentBucketHashMap<K,V>
java.lang.Object
kmer.lab.concurrentbuckethashmap.ConcurrentBucketHashMap<K,V>
- All Implemented Interfaces:
ConcurrentMap<K,V>,Map<K,V>
@ThreadSafe
public class ConcurrentBucketHashMap<K,V>
extends Object
implements ConcurrentMap<K,V>
- Author:
- __STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)entrySet()booleanisEmpty()keySet()voidputIfAbsent(K key, V value)booleanbooleanintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
ConcurrentBucketHashMap
public ConcurrentBucketHashMap(int bucketCount)
-
-
Method Details
-
get
-
put
-
compute
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V>- Specified by:
putIfAbsentin interfaceMap<K,V>
-
putAll
-
replace
-
replace
-
clear
public void clear() -
remove
-
remove
-
keySet
-
values
-
entrySet
-