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
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.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
sizein interfaceMap- Specified by:
sizein classDictionary
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap- Specified by:
isEmptyin classDictionary
-
containsKey
- Specified by:
containsKeyin interfaceMap
-
contains
-
put
- Specified by:
putin interfaceMap- Specified by:
putin classDictionary
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap- Specified by:
putIfAbsentin interfaceMap
-
remove
- Specified by:
removein interfaceMap- Specified by:
removein classDictionary
-
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
-
clear
public void clear() -
containsValue
- Specified by:
containsValuein interfaceMap
-
rehash
protected void rehash() -
clone
-
toString
-
get
- Specified by:
getin interfaceMap- Specified by:
getin classDictionary
-
elements
- Specified by:
elementsin classDictionary
-
values
-
keys
- Specified by:
keysin classDictionary
-
keySet
-
entrySet
-