|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.adfnmc.java.util.AbstractMap
oracle.adfnmc.java.util.WeakHashMap
public class WeakHashMap
Internal: Applications should not use this class.
| Constructor Summary | |
|---|---|
WeakHashMap()
Constructs a new empty instance of WeakHashMap. |
|
WeakHashMap(int capacity)
Constructs a new instance of WeakHashMap with the specified capacity. |
|
WeakHashMap(int capacity,
float loadFactor)
Constructs a new instance of WeakHashMap with the specified capacity and load factor. |
|
WeakHashMap(Map map)
|
|
| Method Summary | |
|---|---|
void |
clear()
Removes all elements from this Map, leaving it empty. |
boolean |
containsKey(java.lang.Object key)
Searches this Map for the specified key. |
boolean |
containsValue(java.lang.Object value)
Searches this Map for the specified value. |
Set |
entrySet()
Returns a Set of Map.Entrys that represent the entries in this Map. |
java.lang.Object |
get(java.lang.Object key)
Answers the value of the mapping with the specified key. |
boolean |
isEmpty()
Answers if this Map has no elements, a size of zero. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps the specified key to the specified value. |
void |
putAll(Map map)
Copies all the mappings in the given map to this map. |
java.lang.Object |
remove(java.lang.Object key)
Removes a mapping with the specified key from this Map. |
int |
size()
Answers the number of elements in this Map. |
| Methods inherited from class oracle.adfnmc.java.util.AbstractMap |
|---|
clone, equals, hashCode, keySet, toString, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeakHashMap()
public WeakHashMap(int capacity)
capacity - the initial capacity of this WeakHashMap
java.lang.IllegalArgumentException - when the capacity is less than zero
public WeakHashMap(int capacity,
float loadFactor)
capacity - the initial capacityloadFactor - the initial load factor
java.lang.IllegalArgumentException - when the capacity is less than zero or the load factor is less or equal to zeropublic WeakHashMap(Map map)
| Method Detail |
|---|
public boolean containsKey(java.lang.Object key)
AbstractMap
containsKey in interface MapcontainsKey in class AbstractMapkey - the object to search for
key is a key of this Map, false otherwisepublic boolean containsValue(java.lang.Object value)
AbstractMap
containsValue in interface MapcontainsValue in class AbstractMapvalue - the object to search for
value is a value of this Map, false otherwisepublic int size()
AbstractMap
size in interface Mapsize in class AbstractMappublic boolean isEmpty()
AbstractMap
isEmpty in interface MapisEmpty in class AbstractMapAbstractMap.size()public java.lang.Object get(java.lang.Object key)
AbstractMap
get in interface Mapget in class AbstractMapkey - the key
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
AbstractMap
put in interface Mapput in class AbstractMapkey - the keyvalue - the value
public java.lang.Object remove(java.lang.Object key)
AbstractMap
remove in interface Mapremove in class AbstractMapkey - the key of the mapping to remove
public Set entrySet()
AbstractMapMap.Entrys that represent the entries in this Map. Making changes to this Set will
change the original Map and vice-versa. Entries can be removed from the Set, or their values can be changed, but
new entries cannot be added to the Set.
entrySet in interface MapentrySet in class AbstractMapMap.Entrys representing the entries in this Mappublic void clear()
AbstractMap
clear in interface Mapclear in class AbstractMapAbstractMap.isEmpty(),
AbstractMap.size()public void putAll(Map map)
putAll in interface MapputAll in class AbstractMapmap - the Map to copy mappings from
java.lang.NullPointerException - if the given map is null
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||