|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
org.apache.commons.collections.FastHashMap
org.apache.commons.beanutils.locale.LocaleConvertUtilsBean.DelegateFastHashMap
private static class LocaleConvertUtilsBean.DelegateFastHashMap
FastHashMap implementation that uses WeakReferences to overcome memory leak problems. This is a hack to retain binary compatibility with previous releases (where FastHashMap is exposed in the API), but use WeakHashMap to resolve memory leaks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
private Map |
map
|
| Fields inherited from class org.apache.commons.collections.FastHashMap |
|---|
fast |
| Constructor Summary | |
|---|---|
private |
LocaleConvertUtilsBean.DelegateFastHashMap(Map map)
|
| Method Summary | |
|---|---|
void |
clear()
Remove all mappings from this map. |
boolean |
containsKey(Object key)
Return true if this map contains a mapping for the
specified key. |
boolean |
containsValue(Object value)
Return true if this map contains one or more keys mapping
to the specified value. |
Set |
entrySet()
Return a collection view of the mappings contained in this map. |
boolean |
equals(Object o)
Compare the specified object with this list for equality. |
Object |
get(Object key)
Return the value to which this map maps the specified key. |
boolean |
getFast()
Returns true if this map is operating in fast mode. |
int |
hashCode()
Return the hash code value for this map. |
boolean |
isEmpty()
Return true if this map contains no mappings. |
Set |
keySet()
Return a set view of the keys contained in this map. |
Object |
put(Object key,
Object value)
Associate the specified value with the specified key in this map. |
void |
putAll(Map m)
Copy all of the mappings from the specified map to this one, replacing any mappings with the same keys. |
Object |
remove(Object key)
Remove any mapping for this key, and return any previously mapped value. |
void |
setFast(boolean fast)
Sets whether this map is operating in fast mode. |
int |
size()
Return the number of key-value mappings in this map. |
Collection |
values()
Return a collection view of the values contained in this map. |
| Methods inherited from class org.apache.commons.collections.FastHashMap |
|---|
clone |
| Methods inherited from class java.util.AbstractMap |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final Map map
| Constructor Detail |
|---|
private LocaleConvertUtilsBean.DelegateFastHashMap(Map map)
| Method Detail |
|---|
public void clear()
FastHashMap
clear in interface Mapclear in class FastHashMappublic boolean containsKey(Object key)
FastHashMaptrue if this map contains a mapping for the
specified key.
containsKey in interface MapcontainsKey in class FastHashMapkey - the key to be searched for
public boolean containsValue(Object value)
FastHashMaptrue if this map contains one or more keys mapping
to the specified value.
containsValue in interface MapcontainsValue in class FastHashMapvalue - the value to be searched for
public Set entrySet()
FastHashMapMap.Entry.
entrySet in interface MapentrySet in class FastHashMappublic boolean equals(Object o)
FastHashMapMap.equals method.
equals in interface Mapequals in class FastHashMapo - the object to be compared to this list
public Object get(Object key)
FastHashMapnull if the map contains no mapping for this key, or if
there is a mapping with a value of null. Use the
containsKey() method to disambiguate these cases.
get in interface Mapget in class FastHashMapkey - the key whose value is to be returned
public int hashCode()
FastHashMapMap.hashCode method.
hashCode in interface MaphashCode in class FastHashMappublic boolean isEmpty()
FastHashMaptrue if this map contains no mappings.
isEmpty in interface MapisEmpty in class FastHashMappublic Set keySet()
FastHashMap
keySet in interface MapkeySet in class FastHashMap
public Object put(Object key,
Object value)
FastHashMap
put in interface Mapput in class FastHashMapkey - the key with which the value is to be associatedvalue - the value to be associated with this key
public void putAll(Map m)
FastHashMap
putAll in interface MapputAll in class FastHashMapm - the map whose mappings are to be copiedpublic Object remove(Object key)
FastHashMap
remove in interface Mapremove in class FastHashMapkey - the key whose mapping is to be removed
public int size()
FastHashMap
size in interface Mapsize in class FastHashMappublic Collection values()
FastHashMap
values in interface Mapvalues in class FastHashMappublic boolean getFast()
FastHashMap
getFast in class FastHashMappublic void setFast(boolean fast)
FastHashMap
setFast in class FastHashMapfast - true if this map should operate in fast mode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||