org.apache.commons.beanutils.locale
private static class LocaleConvertUtilsBean.DelegateFastHashMap extends FastHashMap
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
map |
fast
Modifier | Constructor and Description |
---|---|
private |
LocaleConvertUtilsBean.DelegateFastHashMap(java.util.Map map) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all mappings from this map.
|
boolean |
containsKey(java.lang.Object key)
Return
true if this map contains a mapping for the
specified key. |
boolean |
containsValue(java.lang.Object value)
Return
true if this map contains one or more keys mapping
to the specified value. |
java.util.Set |
entrySet()
Return a collection view of the mappings contained in this map.
|
boolean |
equals(java.lang.Object o)
Compare the specified object with this list for equality.
|
java.lang.Object |
get(java.lang.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. |
java.util.Set |
keySet()
Return a set view of the keys contained in this map.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associate the specified value with the specified key in this map.
|
void |
putAll(java.util.Map m)
Copy all of the mappings from the specified map to this one, replacing
any mappings with the same keys.
|
java.lang.Object |
remove(java.lang.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.
|
java.util.Collection |
values()
Return a collection view of the values contained in this map.
|
clone
private LocaleConvertUtilsBean.DelegateFastHashMap(java.util.Map map)
public void clear()
FastHashMap
clear
in interface java.util.Map
clear
in class FastHashMap
public boolean containsKey(java.lang.Object key)
FastHashMap
true
if this map contains a mapping for the
specified key.containsKey
in interface java.util.Map
containsKey
in class FastHashMap
key
- the key to be searched forpublic boolean containsValue(java.lang.Object value)
FastHashMap
true
if this map contains one or more keys mapping
to the specified value.containsValue
in interface java.util.Map
containsValue
in class FastHashMap
value
- the value to be searched forpublic java.util.Set entrySet()
FastHashMap
Map.Entry
.entrySet
in interface java.util.Map
entrySet
in class FastHashMap
public boolean equals(java.lang.Object o)
FastHashMap
Map.equals
method.equals
in interface java.util.Map
equals
in class FastHashMap
o
- the object to be compared to this listpublic java.lang.Object get(java.lang.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 java.util.Map
get
in class FastHashMap
key
- the key whose value is to be returnedpublic int hashCode()
FastHashMap
Map.hashCode
method.hashCode
in interface java.util.Map
hashCode
in class FastHashMap
public boolean isEmpty()
FastHashMap
true
if this map contains no mappings.isEmpty
in interface java.util.Map
isEmpty
in class FastHashMap
public java.util.Set keySet()
FastHashMap
keySet
in interface java.util.Map
keySet
in class FastHashMap
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
FastHashMap
put
in interface java.util.Map
put
in class FastHashMap
key
- the key with which the value is to be associatedvalue
- the value to be associated with this keypublic void putAll(java.util.Map m)
FastHashMap
putAll
in interface java.util.Map
putAll
in class FastHashMap
m
- the map whose mappings are to be copiedpublic java.lang.Object remove(java.lang.Object key)
FastHashMap
remove
in interface java.util.Map
remove
in class FastHashMap
key
- the key whose mapping is to be removedpublic int size()
FastHashMap
size
in interface java.util.Map
size
in class FastHashMap
public java.util.Collection values()
FastHashMap
values
in interface java.util.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 modeCopyright (c) 2000-2008 - Apache Software Foundation