java.util
Class Hashtable<K,V>

java.lang.Object
  extended by java.util.Dictionary<TypeK,TypeV>
      extended by org.cliffc.high_scale_lib.NonBlockingHashtable<K,V>
          extended by java.util.Hashtable<K,V>
Type Parameters:
TypeK - the type of keys maintained by this map
TypeV - 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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Hashtable()
           
Hashtable(int initialCapacity)
           
Hashtable(int initialCapacity, float loadFactor)
           
Hashtable(Map<? extends K,? extends V> t)
           
 
Method Summary
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

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.