Index
All Classes and Interfaces|All Packages
C
- clear() - Method in class org.plumelib.util.WeakHasherMap
-
Removes all mappings from this map.
- clear() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Removes all mappings from this map.
- containsKey(Object) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns
true
if this map contains a mapping for the specified key. - containsKey(Object) - Method in class org.plumelib.util.WeakHasherMap
-
Returns
true
if this map contains a mapping for the specified key. - containsValue(Object) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns
true
if this map maps one or more keys to the specified value.
E
- entrySet() - Method in class org.plumelib.util.WeakHasherMap
-
Returns a
Set
view of the mappings in this map. - entrySet() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns a collection view of the mappings contained in this map.
- equals(Object, Object) - Method in interface org.plumelib.util.Hasher
-
The equality function over the objects being hashed.
G
- get(Object) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns the value to which the specified key is mapped in this weak hash map, or
null
if the map contains no mapping for this key. - get(Object) - Method in class org.plumelib.util.WeakHasherMap
-
Returns the value to which this map maps the specified
key
.
H
- hashCode(Object) - Method in interface org.plumelib.util.Hasher
-
hashCode function for objects under consideration (not for Hasher objects).
- Hasher - Interface in org.plumelib.util
-
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.
I
- isEmpty() - Method in class org.plumelib.util.WeakHasherMap
-
Returns
true
if this map contains no key-value mappings. - isEmpty() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns
true
if this map contains no key-value mappings.
K
- keySet() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns a set view of the keys contained in this map.
O
- org.plumelib.util - package org.plumelib.util
-
Plume-lib HashMap Util: Utility libraries for Java HashMaps
P
- put(K, V) - Method in class org.plumelib.util.WeakHasherMap
-
Updates this map so that the given
key
maps to the givenvalue
. - put(K, V) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Associates the specified value with the specified key in this map.
- putAll(Map<? extends K, ? extends V>) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Copies all of the mappings from the specified map to this map These mappings will replace any mappings that this map had for any of the keys currently in the specified map.
R
- remove(Object) - Method in class org.plumelib.util.WeakHasherMap
-
Removes the mapping for the given
key
from this map, if present. - remove(Object) - Method in class org.plumelib.util.WeakIdentityHashMap
-
Removes the mapping for this key from this map if present.
S
- size() - Method in class org.plumelib.util.WeakHasherMap
-
Returns the number of key-value mappings in this map.
- size() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns the number of key-value mappings in this map.
V
- values() - Method in class org.plumelib.util.WeakIdentityHashMap
-
Returns a collection view of the values contained in this map.
W
- WeakHasherMap<K,
V> - Class in org.plumelib.util -
This is a modified version of
WeakHashMap
from JDK 1.2.2, that adds a constructor that takes aHasher
argument. - WeakHasherMap() - Constructor for class org.plumelib.util.WeakHasherMap
-
Constructs a new, empty
WeakHashMap
with the default capacity and the default load factor, which is0.75
. - WeakHasherMap(int) - Constructor for class org.plumelib.util.WeakHasherMap
-
Constructs a new, empty
WeakHashMap
with the given initial capacity and the default load factor, which is0.75
. - WeakHasherMap(int, float) - Constructor for class org.plumelib.util.WeakHasherMap
-
Constructs a new, empty
WeakHashMap
with the given initial capacity and the given load factor. - WeakHasherMap(Hasher) - Constructor for class org.plumelib.util.WeakHasherMap
-
Constructs a new, empty
WeakHashMap
with the default capacity and the default load factor, which is0.75
. - WeakIdentityHashMap<K,
V> - Class in org.plumelib.util -
This class combines the features of
WeakHashMap
andIdentityHashMap
. - WeakIdentityHashMap() - Constructor for class org.plumelib.util.WeakIdentityHashMap
-
Constructs a new, empty
WeakIdentityHashMap
with the default initial capacity (16) and the default load factor (0.75). - WeakIdentityHashMap(int) - Constructor for class org.plumelib.util.WeakIdentityHashMap
-
Constructs a new, empty
WeakIdentityHashMap
with the given initial capacity and the default load factor, which is0.75
. - WeakIdentityHashMap(int, float) - Constructor for class org.plumelib.util.WeakIdentityHashMap
-
Constructs a new, empty
WeakIdentityHashMap
with the given initial capacity and the given load factor. - WeakIdentityHashMap(Map<? extends K, ? extends V>) - Constructor for class org.plumelib.util.WeakIdentityHashMap
-
Constructs a new
WeakIdentityHashMap
with the same mappings as the specifiedMap
.
All Classes and Interfaces|All Packages