Package zombie.core.Collections
Class NonBlockingIdentityHashMap
java.lang.Object
java.util.AbstractMap
zombie.core.Collections.NonBlockingIdentityHashMap
- All Implemented Interfaces:
Serializable
,Cloneable
,ConcurrentMap
,Map
public class NonBlockingIdentityHashMap
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
boolean
boolean
containsKey
(Object object) boolean
containsValue
(Object object) elements()
entrySet()
protected final void
boolean
isEmpty()
keys()
keySet()
final void
print()
void
putIfAbsent
(Object object, Object object2) protected void
rehash()
boolean
boolean
long
reprobes()
int
size()
toString()
values()
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
NonBlockingIdentityHashMap
public NonBlockingIdentityHashMap() -
NonBlockingIdentityHashMap
public NonBlockingIdentityHashMap(int int1)
-
-
Method Details
-
print
public final void print() -
reprobes
public long reprobes() -
initialize
protected final void initialize() -
size
public int size()- Specified by:
size
in interfaceMap
- Overrides:
size
in classAbstractMap
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap
- Overrides:
isEmpty
in classAbstractMap
-
containsKey
- Specified by:
containsKey
in interfaceMap
- Overrides:
containsKey
in classAbstractMap
-
contains
-
put
- Specified by:
put
in interfaceMap
- Overrides:
put
in classAbstractMap
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceConcurrentMap
- Specified by:
putIfAbsent
in interfaceMap
-
remove
- Specified by:
remove
in interfaceMap
- Overrides:
remove
in classAbstractMap
-
remove
- Specified by:
remove
in interfaceConcurrentMap
- Specified by:
remove
in interfaceMap
-
replace
- Specified by:
replace
in interfaceConcurrentMap
- Specified by:
replace
in interfaceMap
-
replace
- Specified by:
replace
in interfaceConcurrentMap
- Specified by:
replace
in interfaceMap
-
putAll
- Specified by:
putAll
in interfaceMap
- Overrides:
putAll
in classAbstractMap
-
clear
public void clear()- Specified by:
clear
in interfaceMap
- Overrides:
clear
in classAbstractMap
-
containsValue
- Specified by:
containsValue
in interfaceMap
- Overrides:
containsValue
in classAbstractMap
-
rehash
protected void rehash() -
clone
- Overrides:
clone
in classAbstractMap
-
toString
- Overrides:
toString
in classAbstractMap
-
get
- Specified by:
get
in interfaceMap
- Overrides:
get
in classAbstractMap
-
elements
-
values
- Specified by:
values
in interfaceMap
- Overrides:
values
in classAbstractMap
-
keys
-
keySet
- Specified by:
keySet
in interfaceMap
- Overrides:
keySet
in classAbstractMap
-
entrySet
- Specified by:
entrySet
in interfaceMap
- Specified by:
entrySet
in classAbstractMap
-