|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 Map
clear
in class FastHashMap
public boolean containsKey(Object key)
FastHashMap
true
if this map contains a mapping for the
specified key.
containsKey
in interface Map
containsKey
in class FastHashMap
key
- the key to be searched for
public boolean containsValue(Object value)
FastHashMap
true
if this map contains one or more keys mapping
to the specified value.
containsValue
in interface Map
containsValue
in class FastHashMap
value
- the value to be searched for
public Set entrySet()
FastHashMap
Map.Entry
.
entrySet
in interface Map
entrySet
in class FastHashMap
public boolean equals(Object o)
FastHashMap
Map.equals
method.
equals
in interface Map
equals
in class FastHashMap
o
- the object to be compared to this list
public Object get(Object key)
FastHashMap
null
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 Map
get
in class FastHashMap
key
- the key whose value is to be returned
public int hashCode()
FastHashMap
Map.hashCode
method.
hashCode
in interface Map
hashCode
in class FastHashMap
public boolean isEmpty()
FastHashMap
true
if this map contains no mappings.
isEmpty
in interface Map
isEmpty
in class FastHashMap
public Set keySet()
FastHashMap
keySet
in interface Map
keySet
in class FastHashMap
public Object put(Object key, Object value)
FastHashMap
put
in interface Map
put
in class FastHashMap
key
- 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 Map
putAll
in class FastHashMap
m
- the map whose mappings are to be copiedpublic Object remove(Object key)
FastHashMap
remove
in interface Map
remove
in class FastHashMap
key
- the key whose mapping is to be removed
public int size()
FastHashMap
size
in interface Map
size
in class FastHashMap
public Collection values()
FastHashMap
values
in interface Map
values
in class FastHashMap
public boolean getFast()
FastHashMap
getFast
in class FastHashMap
public void setFast(boolean fast)
FastHashMap
setFast
in class FastHashMap
fast
- 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 |