java.util
Class Hashtable<K,V>
java.lang.Object
java.util.Dictionary<TypeK,TypeV>
org.cliffc.high_scale_lib.NonBlockingHashtable<K,V>
java.util.Hashtable<K,V>
- Type Parameters:
TypeK
- the type of keys maintained by this mapTypeV
- the type of mapped values
- All Implemented Interfaces:
- Serializable, Cloneable, ConcurrentMap<K,V>, Map<K,V>
public class Hashtable<K,V>
- extends NonBlockingHashtable<K,V>
A plug-in replacement for JDK1.5 Hashtable
. This version
is based on NonBlockingHashMap
. The
undocumented iteration order is different from Hashtable, as is the
undocumented (lack of) synchronization. Programs that rely on this
undocumented behavior may break. Otherwise this solution should be
completely compatible, including the serialized forms.
This version is not synchronized, and correctly operates
as a thread-safe Hashtable. It does not provide the
same ordering guarantees as calling synchronized methods will. The old
Hashtable's methods were synchronized and would provide ordering. This
behavior is not part of Hashtable's spec. This version's methods are not
synchronized and will not force the same Java Memory Model orderings.
- Since:
- 1.5
- Author:
- Cliff Click
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class org.cliffc.high_scale_lib.NonBlockingHashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, get, initialize, isEmpty, keys, keySet, print, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, reprobes, size, toString, values |
Hashtable
public Hashtable()
Hashtable
public Hashtable(int initialCapacity)
Hashtable
public Hashtable(int initialCapacity,
float loadFactor)
Hashtable
public Hashtable(Map<? extends K,? extends V> t)
Copyright © 2011. All Rights Reserved.