Package zombie.core.Collections
Class NonBlockingHashMapLong
java.lang.Object
java.util.AbstractMap
zombie.core.Collections.NonBlockingHashMapLong
- All Implemented Interfaces:
java.io.Serializable
,java.util.concurrent.ConcurrentMap
,java.util.Map
public class NonBlockingHashMapLong
extends java.util.AbstractMap
implements java.util.concurrent.ConcurrentMap, java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NonBlockingHashMapLong.IteratorLong
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 NonBlockingHashMapLong()
NonBlockingHashMapLong(boolean opt_for_space)
NonBlockingHashMapLong(int initial_sz)
NonBlockingHashMapLong(int initial_sz, boolean opt_for_space)
-
Method Summary
Modifier and Type Method Description void
clear()
boolean
contains(java.lang.Object val)
boolean
containsKey(long key)
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object val)
java.util.Enumeration
elements()
java.util.Set
entrySet()
java.lang.Object
get(long key)
java.lang.Object
get(java.lang.Object key)
java.util.Enumeration
keys()
java.util.Set
keySet()
void
print()
java.lang.Object
put(long key, java.lang.Object val)
java.lang.Object
put(java.lang.Long key, java.lang.Object val)
java.lang.Object
putIfAbsent(long key, java.lang.Object val)
java.lang.Object
putIfAbsent(java.lang.Long key, java.lang.Object val)
java.lang.Object
remove(long key)
boolean
remove(long key, java.lang.Object val)
java.lang.Object
remove(java.lang.Object key)
boolean
remove(java.lang.Object key, java.lang.Object Val)
java.lang.Object
replace(long key, java.lang.Object val)
boolean
replace(long key, java.lang.Object oldValue, java.lang.Object newValue)
java.lang.Object
replace(java.lang.Long key, java.lang.Object Val)
boolean
replace(java.lang.Long key, java.lang.Object oldValue, java.lang.Object newValue)
long
reprobes()
int
size()
java.util.Collection
values()
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, isEmpty, put, putAll, toString
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, putIfAbsent, replace, replace, replaceAll
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty, put, putAll
-
Constructor Details
-
NonBlockingHashMapLong
public NonBlockingHashMapLong() -
NonBlockingHashMapLong
public NonBlockingHashMapLong(int initial_sz) -
NonBlockingHashMapLong
public NonBlockingHashMapLong(boolean opt_for_space) -
NonBlockingHashMapLong
public NonBlockingHashMapLong(int initial_sz, boolean opt_for_space)
-
-
Method Details
-
print
public final void print() -
reprobes
public long reprobes() -
size
public int size()- Specified by:
size
in interfacejava.util.Map
- Overrides:
size
in classjava.util.AbstractMap
-
containsKey
public boolean containsKey(long key) -
contains
public boolean contains(java.lang.Object val) -
put
public java.lang.Object put(long key, java.lang.Object val) -
putIfAbsent
public java.lang.Object putIfAbsent(long key, java.lang.Object val) -
remove
public java.lang.Object remove(long key) -
remove
public boolean remove(long key, java.lang.Object val) -
replace
public java.lang.Object replace(long key, java.lang.Object val) -
replace
public boolean replace(long key, java.lang.Object oldValue, java.lang.Object newValue) -
clear
public void clear()- Specified by:
clear
in interfacejava.util.Map
- Overrides:
clear
in classjava.util.AbstractMap
-
containsValue
public boolean containsValue(java.lang.Object val)- Specified by:
containsValue
in interfacejava.util.Map
- Overrides:
containsValue
in classjava.util.AbstractMap
-
get
public final java.lang.Object get(long key) -
get
public java.lang.Object get(java.lang.Object key)- Specified by:
get
in interfacejava.util.Map
- Overrides:
get
in classjava.util.AbstractMap
-
remove
public java.lang.Object remove(java.lang.Object key)- Specified by:
remove
in interfacejava.util.Map
- Overrides:
remove
in classjava.util.AbstractMap
-
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
-
containsKey
public boolean containsKey(java.lang.Object key)- Specified by:
containsKey
in interfacejava.util.Map
- Overrides:
containsKey
in classjava.util.AbstractMap
-
putIfAbsent
public java.lang.Object putIfAbsent(java.lang.Long key, java.lang.Object val) -
replace
public java.lang.Object replace(java.lang.Long key, java.lang.Object Val) -
put
public java.lang.Object put(java.lang.Long key, java.lang.Object val) -
replace
public boolean replace(java.lang.Long key, java.lang.Object oldValue, java.lang.Object newValue) -
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
-