Package zombie.core.Collections
Class NonBlockingHashtable
java.lang.Object
java.util.Dictionary
zombie.core.Collections.NonBlockingHashtable
- All Implemented Interfaces:
Serializable
,Cloneable
,ConcurrentMap
,Map
public class NonBlockingHashtable
extends Dictionary
implements ConcurrentMap, Cloneable, Serializable
- See Also:
-
Nested Class Summary
-
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.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
NonBlockingHashtable
public NonBlockingHashtable() -
NonBlockingHashtable
public NonBlockingHashtable(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
- Specified by:
size
in classDictionary
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap
- Specified by:
isEmpty
in classDictionary
-
containsKey
- Specified by:
containsKey
in interfaceMap
-
contains
-
put
- Specified by:
put
in interfaceMap
- Specified by:
put
in classDictionary
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceConcurrentMap
- Specified by:
putIfAbsent
in interfaceMap
-
remove
- Specified by:
remove
in interfaceMap
- Specified by:
remove
in classDictionary
-
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
-
clear
public void clear() -
containsValue
- Specified by:
containsValue
in interfaceMap
-
rehash
protected void rehash() -
clone
-
toString
-
get
- Specified by:
get
in interfaceMap
- Specified by:
get
in classDictionary
-
elements
- Specified by:
elements
in classDictionary
-
values
-
keys
- Specified by:
keys
in classDictionary
-
keySet
-
entrySet
-