Package zombie.core.Collections
Class NonBlockingHashMap
java.lang.Object
java.util.AbstractMap
zombie.core.Collections.NonBlockingHashMap
- All Implemented Interfaces:
Serializable,Cloneable,ConcurrentMap,Map
public class NonBlockingHashMap
extends AbstractMap
implements ConcurrentMap, Cloneable, Serializable
- See Also:
-
Nested Class Summary
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 TypeMethodDescriptionvoidclear()clone()booleanbooleancontainsKey(Object object) booleancontainsValue(Object object) elements()entrySet()protected final voidbooleanisEmpty()keys()keySet()final voidprint()voidputIfAbsent(Object object, Object object2) protected voidrehash()booleanbooleanlongreprobes()intsize()toString()values()Methods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
NonBlockingHashMap
public NonBlockingHashMap() -
NonBlockingHashMap
public NonBlockingHashMap(int int1)
-
-
Method Details
-
print
public final void print() -
reprobes
public long reprobes() -
initialize
protected final void initialize() -
size
public int size()- Specified by:
sizein interfaceMap- Overrides:
sizein classAbstractMap
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap- Overrides:
isEmptyin classAbstractMap
-
containsKey
- Specified by:
containsKeyin interfaceMap- Overrides:
containsKeyin classAbstractMap
-
contains
-
put
- Specified by:
putin interfaceMap- Overrides:
putin classAbstractMap
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap- Specified by:
putIfAbsentin interfaceMap
-
remove
- Specified by:
removein interfaceMap- Overrides:
removein classAbstractMap
-
remove
- Specified by:
removein interfaceConcurrentMap- Specified by:
removein interfaceMap
-
replace
- Specified by:
replacein interfaceConcurrentMap- Specified by:
replacein interfaceMap
-
replace
- Specified by:
replacein interfaceConcurrentMap- Specified by:
replacein interfaceMap
-
putAll
- Specified by:
putAllin interfaceMap- Overrides:
putAllin classAbstractMap
-
clear
public void clear()- Specified by:
clearin interfaceMap- Overrides:
clearin classAbstractMap
-
containsValue
- Specified by:
containsValuein interfaceMap- Overrides:
containsValuein classAbstractMap
-
rehash
protected void rehash() -
clone
- Overrides:
clonein classAbstractMap
-
toString
- Overrides:
toStringin classAbstractMap
-
get
- Specified by:
getin interfaceMap- Overrides:
getin classAbstractMap
-
elements
-
values
- Specified by:
valuesin interfaceMap- Overrides:
valuesin classAbstractMap
-
keys
-
keySet
- Specified by:
keySetin interfaceMap- Overrides:
keySetin classAbstractMap
-
entrySet
- Specified by:
entrySetin interfaceMap- Specified by:
entrySetin classAbstractMap
-