net.sf.xtract.util
Class SoftHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
net.sf.xtract.util.SoftHashMap<K,V>
- All Implemented Interfaces:
- java.util.Map<K,V>
public class SoftHashMap<K,V>
- extends java.util.AbstractMap<K,V>
Method Summary |
void |
clear()
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
|
V |
get(K pKey)
|
V |
put(K pKey,
V pValue)
Here we put the key, value pair into the HashMap using a SoftValue object. |
V |
remove(K pKey)
|
int |
size()
|
Methods inherited from class java.util.AbstractMap |
clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SoftHashMap
public SoftHashMap()
SoftHashMap
public SoftHashMap(int pCapacity)
SoftHashMap
public SoftHashMap(int pCapacity,
float pLoadFactor)
get
public V get(K pKey)
put
public V put(K pKey,
V pValue)
- Here we put the key, value pair into the HashMap using a SoftValue object.
- Specified by:
put
in interface java.util.Map<K,V>
- Overrides:
put
in class java.util.AbstractMap<K,V>
remove
public V remove(K pKey)
clear
public void clear()
- Specified by:
clear
in interface java.util.Map<K,V>
- Overrides:
clear
in class java.util.AbstractMap<K,V>
size
public int size()
- Specified by:
size
in interface java.util.Map<K,V>
- Overrides:
size
in class java.util.AbstractMap<K,V>
entrySet
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
- Specified by:
entrySet
in interface java.util.Map<K,V>
- Specified by:
entrySet
in class java.util.AbstractMap<K,V>
Copyright © 2005 . All Rights Reserved.