Package org.plumelib.util
package org.plumelib.util
Plume-lib HashMap Util: Utility libraries for Java HashMaps
Note that Plume
Util defines other classes in the org.plumelib.util package.
Collections and iterators
Hasher- The
Hasherinterface is an optional argument to a hash table (such asWeakHasherMap) that specifies thehashCode()andequals()methods. WeakHasherMapWeakHashMapis a modified version ofWeakHashMap, that adds a constructor that takes aHasherargument.WeakIdentityHashMapWeakIdentityHashMapis a modified version ofWeakHashMap, that usesSystem.identityHashCode()rather than the object's hash code.
-
ClassDescription
Hasheris intended to work likeComparable: it is an optional argument to a hashing data structure (such as some implementations ofHashSet,HashMap, orWeakHashMap) which specifies thehashCode()andequals()methods.WeakHasherMap<K,V> This is a modified version ofWeakHashMapfrom JDK 1.2.2, that adds a constructor that takes aHasherargument.WeakIdentityHashMap<K,V> This class combines the features ofWeakHashMapandIdentityHashMap.