9 Temmuz 2016 Cumartesi

HashTable Sınıfı

Giriş
Açıklaması şöyle
As of the Java 2 platform v1.2, this class was retrofitted to implement the Map interface, making it a member of the Java Collections Framework. Unlike the new collection implementations, Hashtable is synchronized. If a thread-safe implementation is not needed, it is recommended to use HashMap in place of Hashtable. If a thread-safe highly-concurrent implementation is desired, then it is recommended to use ConcurrentHashMap in place of Hashtable.
Hash metodu
Şöyledir.
hash = key.hashCode();
index = (hash & 0x7FFFFFFF) % tab.length;



Hiç yorum yok:

Yorum Gönder