|
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.Entry s 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 zeropublic 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 Map
containsKey
in class AbstractMap
key
- the object to search for
key
is a key of this Map, false otherwisepublic boolean containsValue(java.lang.Object value)
AbstractMap
containsValue
in interface Map
containsValue
in class AbstractMap
value
- the object to search for
value
is a value of this Map, false otherwisepublic int size()
AbstractMap
size
in interface Map
size
in class AbstractMap
public boolean isEmpty()
AbstractMap
isEmpty
in interface Map
isEmpty
in class AbstractMap
AbstractMap.size()
public java.lang.Object get(java.lang.Object key)
AbstractMap
get
in interface Map
get
in class AbstractMap
key
- the key
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
AbstractMap
put
in interface Map
put
in class AbstractMap
key
- the keyvalue
- the value
public java.lang.Object remove(java.lang.Object key)
AbstractMap
remove
in interface Map
remove
in class AbstractMap
key
- the key of the mapping to remove
public Set entrySet()
AbstractMap
Map.Entry
s 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 Map
entrySet
in class AbstractMap
Map.Entry
s representing the entries in this Mappublic void clear()
AbstractMap
clear
in interface Map
clear
in class AbstractMap
AbstractMap.isEmpty()
,
AbstractMap.size()
public void putAll(Map map)
putAll
in interface Map
putAll
in class AbstractMap
map
- 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 |