Package zombie.core.Collections
Class NonBlockingHashtable
java.lang.Object
java.util.Dictionary
zombie.core.Collections.NonBlockingHashtable
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.concurrent.ConcurrentMap,java.util.Map
public class NonBlockingHashtable
extends java.util.Dictionary
implements java.util.concurrent.ConcurrentMap, java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
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 NonBlockingHashtable()NonBlockingHashtable(int int1) -
Method Summary
Modifier and Type Method Description voidclear()java.lang.Objectclone()booleancontains(java.lang.Object object)booleancontainsKey(java.lang.Object object)booleancontainsValue(java.lang.Object object)java.util.Enumerationelements()java.util.SetentrySet()java.lang.Objectget(java.lang.Object object)protected voidinitialize()booleanisEmpty()java.util.Enumerationkeys()java.util.SetkeySet()voidprint()java.lang.Objectput(java.lang.Object object, java.lang.Object object2)voidputAll(java.util.Map map)java.lang.ObjectputIfAbsent(java.lang.Object object, java.lang.Object object2)protected voidrehash()java.lang.Objectremove(java.lang.Object object)booleanremove(java.lang.Object object, java.lang.Object object2)java.lang.Objectreplace(java.lang.Object object, java.lang.Object object2)booleanreplace(java.lang.Object object, java.lang.Object object2, java.lang.Object object3)longreprobes()intsize()java.lang.StringtoString()java.util.Collectionvalues()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, replaceAllMethods inherited from interface java.util.Map
equals, hashCode
-
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 interfacejava.util.Map- Specified by:
sizein classjava.util.Dictionary
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacejava.util.Map- Specified by:
isEmptyin classjava.util.Dictionary
-
containsKey
public boolean containsKey(java.lang.Object object)- Specified by:
containsKeyin interfacejava.util.Map
-
contains
public boolean contains(java.lang.Object object) -
put
public java.lang.Object put(java.lang.Object object, java.lang.Object object2)- Specified by:
putin interfacejava.util.Map- Specified by:
putin classjava.util.Dictionary
-
putIfAbsent
public java.lang.Object putIfAbsent(java.lang.Object object, java.lang.Object object2)- Specified by:
putIfAbsentin interfacejava.util.concurrent.ConcurrentMap- Specified by:
putIfAbsentin interfacejava.util.Map
-
remove
public java.lang.Object remove(java.lang.Object object)- Specified by:
removein interfacejava.util.Map- Specified by:
removein classjava.util.Dictionary
-
remove
public boolean remove(java.lang.Object object, java.lang.Object object2)- Specified by:
removein interfacejava.util.concurrent.ConcurrentMap- Specified by:
removein interfacejava.util.Map
-
replace
public java.lang.Object replace(java.lang.Object object, java.lang.Object object2)- Specified by:
replacein interfacejava.util.concurrent.ConcurrentMap- Specified by:
replacein interfacejava.util.Map
-
replace
public boolean replace(java.lang.Object object, java.lang.Object object2, java.lang.Object object3)- Specified by:
replacein interfacejava.util.concurrent.ConcurrentMap- Specified by:
replacein interfacejava.util.Map
-
putAll
public void putAll(java.util.Map map)- Specified by:
putAllin interfacejava.util.Map
-
clear
public void clear()- Specified by:
clearin interfacejava.util.Map
-
containsValue
public boolean containsValue(java.lang.Object object)- Specified by:
containsValuein interfacejava.util.Map
-
rehash
protected void rehash() -
clone
public java.lang.Object clone()- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
get
public java.lang.Object get(java.lang.Object object)- Specified by:
getin interfacejava.util.Map- Specified by:
getin classjava.util.Dictionary
-
elements
public java.util.Enumeration elements()- Specified by:
elementsin classjava.util.Dictionary
-
values
public java.util.Collection values()- Specified by:
valuesin interfacejava.util.Map
-
keys
public java.util.Enumeration keys()- Specified by:
keysin classjava.util.Dictionary
-
keySet
public java.util.Set keySet()- Specified by:
keySetin interfacejava.util.Map
-
entrySet
public java.util.Set entrySet()- Specified by:
entrySetin interfacejava.util.Map
-