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
Hasher
interface is an optional argument to a hash table (such asWeakHasherMap
) that specifies thehashCode()
andequals()
methods. WeakHasherMap
WeakHashMap
is a modified version ofWeakHashMap
, that adds a constructor that takes aHasher
argument.WeakIdentityHashMap
WeakIdentityHashMap
is a modified version ofWeakHashMap
, that usesSystem.identityHashCode()
rather than the object's hash code.
-
ClassDescription
Hasher
is 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 ofWeakHashMap
from JDK 1.2.2, that adds a constructor that takes aHasher
argument.WeakIdentityHashMap<K,V> This class combines the features ofWeakHashMap
andIdentityHashMap
.