| java.lang.Object java.util.AbstractMap de.mcs.utils.SoftHashMap
SoftHashMap | public class SoftHashMap extends AbstractMap (Code) | | Implements a Map with only soft references backuped by a hashmap.
author: w.klaas |
Constructor Summary | |
public | SoftHashMap() Constructs an empty HashMap with the default initial capacity
(16) and the default load factor (0.75). | public | SoftHashMap(int initialCapacity) Constructs an empty HashMap with the specified initial
capacity and the default load factor (0.75). | public | SoftHashMap(int initialCapacity, float loadFactor) Constructs an empty HashMap with the specified initial
capacity and load factor. |
SoftHashMap | public SoftHashMap()(Code) | | Constructs an empty HashMap with the default initial capacity
(16) and the default load factor (0.75).
|
SoftHashMap | public SoftHashMap(int initialCapacity)(Code) | | Constructs an empty HashMap with the specified initial
capacity and the default load factor (0.75).
Parameters: initialCapacity - the initial capacity. |
SoftHashMap | public SoftHashMap(int initialCapacity, float loadFactor)(Code) | | Constructs an empty HashMap with the specified initial
capacity and load factor.
Parameters: initialCapacity - The initial capacity. Parameters: loadFactor - The load factor. |
entrySet | final public Set entrySet()(Code) | | getting the entry set.
Set |
get | final public Object get(Object key)(Code) | | Returns the value to which this map maps the specified key. Returns
null if the map contains no mapping for this key. A return
value of null does not necessarily indicate that the
map contains no mapping for the key; it's also possible that the map
explicitly maps the key to null. The containsKey
operation may be used to distinguish these two cases.
More formally, if this map contains a mapping from a key k to
a value v such that (key==null ? k==null :
key.equals(k)),
then this method returns v; otherwise it returns
null. (There can be at most one such mapping.)
Parameters: key - key whose associated value is to be returned. the value to which this map maps the specified key, ornull if the map contains no mapping for this key. See Also: SoftHashMap.containsKey(Object) |
|
|