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 initial_sz)
-
Method Summary
Modifier and Type Method Description void
clear()
java.lang.Object
clone()
boolean
contains(java.lang.Object val)
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object val)
java.util.Enumeration
elements()
java.util.Set
entrySet()
java.lang.Object
get(java.lang.Object key)
protected void
initialize()
boolean
isEmpty()
java.util.Enumeration
keys()
java.util.Set
keySet()
void
print()
java.lang.Object
put(java.lang.Object key, java.lang.Object val)
void
putAll(java.util.Map m)
java.lang.Object
putIfAbsent(java.lang.Object key, java.lang.Object val)
protected void
rehash()
java.lang.Object
remove(java.lang.Object key)
boolean
remove(java.lang.Object key, java.lang.Object val)
java.lang.Object
replace(java.lang.Object key, java.lang.Object val)
boolean
replace(java.lang.Object key, java.lang.Object oldValue, java.lang.Object newValue)
long
reprobes()
int
size()
java.lang.String
toString()
java.util.Collection
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
Methods inherited from interface java.util.Map
equals, hashCode
-
Constructor Details
-
NonBlockingHashtable
public NonBlockingHashtable() -
NonBlockingHashtable
public NonBlockingHashtable(int initial_sz)
-
-
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
- Specified by:
size
in classjava.util.Dictionary
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfacejava.util.Map
- Specified by:
isEmpty
in classjava.util.Dictionary
-
containsKey
public boolean containsKey(java.lang.Object key)- Specified by:
containsKey
in interfacejava.util.Map
-
contains
public boolean contains(java.lang.Object val) -
put
public java.lang.Object put(java.lang.Object key, java.lang.Object val)- Specified by:
put
in interfacejava.util.Map
- Specified by:
put
in classjava.util.Dictionary
-
putIfAbsent
public java.lang.Object putIfAbsent(java.lang.Object key, java.lang.Object val)- Specified by:
putIfAbsent
in interfacejava.util.concurrent.ConcurrentMap
- Specified by:
putIfAbsent
in interfacejava.util.Map
-
remove
public java.lang.Object remove(java.lang.Object key)- Specified by:
remove
in interfacejava.util.Map
- Specified by:
remove
in classjava.util.Dictionary
-
remove
public boolean remove(java.lang.Object key, java.lang.Object val)- Specified by:
remove
in interfacejava.util.concurrent.ConcurrentMap
- Specified by:
remove
in interfacejava.util.Map
-
replace
public java.lang.Object replace(java.lang.Object key, java.lang.Object val)- Specified by:
replace
in interfacejava.util.concurrent.ConcurrentMap
- Specified by:
replace
in interfacejava.util.Map
-
replace
public boolean replace(java.lang.Object key, java.lang.Object oldValue, java.lang.Object newValue)- Specified by:
replace
in interfacejava.util.concurrent.ConcurrentMap
- Specified by:
replace
in interfacejava.util.Map
-
putAll
public void putAll(java.util.Map m)- Specified by:
putAll
in interfacejava.util.Map
-
clear
public void clear()- Specified by:
clear
in interfacejava.util.Map
-
containsValue
public boolean containsValue(java.lang.Object val)- Specified by:
containsValue
in interfacejava.util.Map
-
rehash
protected void rehash() -
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
get
public java.lang.Object get(java.lang.Object key)- Specified by:
get
in interfacejava.util.Map
- Specified by:
get
in classjava.util.Dictionary
-
elements
public java.util.Enumeration elements()- Specified by:
elements
in classjava.util.Dictionary
-
values
public java.util.Collection values()- Specified by:
values
in interfacejava.util.Map
-
keys
public java.util.Enumeration keys()- Specified by:
keys
in classjava.util.Dictionary
-
keySet
public java.util.Set keySet()- Specified by:
keySet
in interfacejava.util.Map
-
entrySet
public java.util.Set entrySet()- Specified by:
entrySet
in interfacejava.util.Map
-