Package zombie.core.Collections
Class NonBlockingIdentityHashMap
java.lang.Object
java.util.AbstractMap
zombie.core.Collections.NonBlockingIdentityHashMap
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.concurrent.ConcurrentMap
,java.util.Map
public class NonBlockingIdentityHashMap
extends java.util.AbstractMap
implements java.util.concurrent.ConcurrentMap, java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,V extends java.lang.Object>
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
Constructor Summary
Constructors Constructor Description NonBlockingIdentityHashMap()
NonBlockingIdentityHashMap(int int1)
-
Method Summary
Modifier and Type Method Description void
clear()
java.lang.Object
clone()
boolean
contains(java.lang.Object object)
boolean
containsKey(java.lang.Object object)
boolean
containsValue(java.lang.Object object)
java.util.Enumeration
elements()
java.util.Set
entrySet()
java.lang.Object
get(java.lang.Object object)
protected void
initialize()
boolean
isEmpty()
java.util.Enumeration
keys()
java.util.Set
keySet()
void
print()
java.lang.Object
put(java.lang.Object object, java.lang.Object object2)
void
putAll(java.util.Map map)
java.lang.Object
putIfAbsent(java.lang.Object object, java.lang.Object object2)
protected void
rehash()
java.lang.Object
remove(java.lang.Object object)
boolean
remove(java.lang.Object object, java.lang.Object object2)
java.lang.Object
replace(java.lang.Object object, java.lang.Object object2)
boolean
replace(java.lang.Object object, java.lang.Object object2, java.lang.Object object3)
long
reprobes()
int
size()
java.lang.String
toString()
java.util.Collection
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
Methods inherited from interface java.util.Map
equals, hashCode
-
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 interfacejava.util.Map
- Overrides:
size
in classjava.util.AbstractMap
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfacejava.util.Map
- Overrides:
isEmpty
in classjava.util.AbstractMap
-
containsKey
public boolean containsKey(java.lang.Object object)- Specified by:
containsKey
in interfacejava.util.Map
- Overrides:
containsKey
in classjava.util.AbstractMap
-
contains
public boolean contains(java.lang.Object object) -
put
public java.lang.Object put(java.lang.Object object, java.lang.Object object2)- Specified by:
put
in interfacejava.util.Map
- Overrides:
put
in classjava.util.AbstractMap
-
putIfAbsent
public java.lang.Object putIfAbsent(java.lang.Object object, java.lang.Object object2)- Specified by:
putIfAbsent
in interfacejava.util.concurrent.ConcurrentMap
- Specified by:
putIfAbsent
in interfacejava.util.Map
-
remove
public java.lang.Object remove(java.lang.Object object)- Specified by:
remove
in interfacejava.util.Map
- Overrides:
remove
in classjava.util.AbstractMap
-
remove
public boolean remove(java.lang.Object object, java.lang.Object object2)- Specified by:
remove
in interfacejava.util.concurrent.ConcurrentMap
- Specified by:
remove
in interfacejava.util.Map
-
replace
public java.lang.Object replace(java.lang.Object object, java.lang.Object object2)- Specified by:
replace
in interfacejava.util.concurrent.ConcurrentMap
- Specified by:
replace
in interfacejava.util.Map
-
replace
public boolean replace(java.lang.Object object, java.lang.Object object2, java.lang.Object object3)- Specified by:
replace
in interfacejava.util.concurrent.ConcurrentMap
- Specified by:
replace
in interfacejava.util.Map
-
putAll
public void putAll(java.util.Map map)- Specified by:
putAll
in interfacejava.util.Map
- Overrides:
putAll
in classjava.util.AbstractMap
-
clear
public void clear()- Specified by:
clear
in interfacejava.util.Map
- Overrides:
clear
in classjava.util.AbstractMap
-
containsValue
public boolean containsValue(java.lang.Object object)- Specified by:
containsValue
in interfacejava.util.Map
- Overrides:
containsValue
in classjava.util.AbstractMap
-
rehash
protected void rehash() -
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.util.AbstractMap
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.util.AbstractMap
-
get
public java.lang.Object get(java.lang.Object object)- Specified by:
get
in interfacejava.util.Map
- Overrides:
get
in classjava.util.AbstractMap
-
elements
public java.util.Enumeration elements() -
values
public java.util.Collection values()- Specified by:
values
in interfacejava.util.Map
- Overrides:
values
in classjava.util.AbstractMap
-
keys
public java.util.Enumeration keys() -
keySet
public java.util.Set keySet()- Specified by:
keySet
in interfacejava.util.Map
- Overrides:
keySet
in classjava.util.AbstractMap
-
entrySet
public java.util.Set entrySet()- Specified by:
entrySet
in interfacejava.util.Map
- Specified by:
entrySet
in classjava.util.AbstractMap
-