public static class Maps.SoftHashMap<K,V> extends Maps.AbstractHashMap<K,V,Maps.SoftEntry<K,V>>
Maps.AbstractHashMap, based on Maps.SoftEntry,
 which holds its values with SoftReferences.DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR, MAXIMUM_CAPACITY| Constructor and Description | 
|---|
SoftHashMap()
Constructs an empty soft-referencing map with default capacity and load 
 factor. 
 | 
SoftHashMap(int initialCapacity)
Constructs an empty soft-referencing map with specified initial capacity 
 and default load factor. 
 | 
SoftHashMap(int initialCapacity,
           float loadFactor)
Constructs an empty soft-referencing map with specified initial capacity 
 and load factor. 
 | 
SoftHashMap(java.util.Map<? extends K,? extends V> map)
Constructs a soft-referencing map with specified initial mappings, 
 initial capacity based on the number of initial mappings, and default 
 load factor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected Maps.SoftEntry<K,V> | 
createEntry(int hash,
           K key,
           V value,
           Maps.SoftEntry<K,V> next)
Creates an entry for this map. 
 | 
addEntry, capacity, change, clear, clone, containsKey, containsValue, createEntryIterator, createEntrySetIterator, createKeySetIterator, createValuesIterator, entryAccessed, entryAdded, entryChanged, entryPurged, entryRemoved, entrySet, equals, get, getChangeCount, getEntry, getQueue, hashCode, isEmpty, keyEquals, keyHashCode, keySet, loadFactor, mapChanged, mapConstructed, mapInitialized, purge, purgeEntry, put, putAll, remove, removeExistingEntry, removeKey, size, toString, valueEquals, valueHashCode, valuespublic SoftHashMap()
public SoftHashMap(int initialCapacity)
initialCapacity - the initial capacity.java.lang.IllegalArgumentException - if the initial capacity is negative.Maps.AbstractHashMap.DEFAULT_LOAD_FACTORpublic SoftHashMap(int initialCapacity,
                   float loadFactor)
initialCapacity - the initial capacity.loadFactor - the load factor.java.lang.IllegalArgumentException - if the initial capacity is negative
                                  or the load factor is nonpositive.public SoftHashMap(java.util.Map<? extends K,? extends V> map)
map - A map providing initial mappings.java.lang.NullPointerException - if the specified map is null.Maps.AbstractHashMap.DEFAULT_LOAD_FACTORprotected Maps.SoftEntry<K,V> createEntry(int hash, K key, V value, Maps.SoftEntry<K,V> next)
 The Maps.SoftHashMap implementation creates Maps.SoftEntry entries.
createEntry in class Maps.AbstractHashMap<K,V,Maps.SoftEntry<K,V>>hash - The hashCode of the key for this entry.key - The key for this entry.value - The value for this entry.next - The entry to follow this entry in the entry chain.