|
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 | ||||||||
public interface Map
Map has a set of keys, each key is mapped to a single value.
| Nested Class Summary | |
|---|---|
static interface |
Map.Entry
Map.Entry is a key/value mapping which is contained in a 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 whose elements comprise all of the mappings that are to be found in this
Map. |
boolean |
equals(java.lang.Object object)
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. |
java.lang.Object |
get(java.lang.Object key)
Answers the value of the mapping with the specified key. |
int |
hashCode()
Answers an integer hash code for the receiver. |
boolean |
isEmpty()
Answers if this Map has no elements, a size of zero. |
Set |
keySet()
Answers a Set of the keys contained in this Map. |
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 every mapping in the specified 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. |
Collection |
values()
Returns all of the current Map values in a Collection. |
| Method Detail |
|---|
void clear()
java.lang.UnsupportedOperationException - when removing from this Map is not supportedisEmpty(),
size()boolean containsKey(java.lang.Object key)
key - the object to search for
key is a key of this Map, false otherwiseboolean containsValue(java.lang.Object value)
value - the object to search for
value is a value of this Map, false otherwiseSet entrySet()
Set whose elements comprise all of the mappings that are to be found in this
Map. Information on each of the mappings is encapsulated in a separate Map.Entry instance. As
the Set is backed by this Map, users should be aware that changes in one will be
immediately visible in the other.
Set of the mappingsboolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - Object the object to compare with this object.
true if the object is the same as this object false if it is different
from this object.hashCode()java.lang.Object get(java.lang.Object key)
key - the key
int hashCode()
hashCode in class java.lang.Objectequals(java.lang.Object)boolean isEmpty()
size()Set keySet()
java.lang.Object put(java.lang.Object key,
java.lang.Object value)
key - the keyvalue - the value
java.lang.UnsupportedOperationException - when adding to this Map is not supported
java.lang.ClassCastException - when the class of the key or value is inappropriate for this Map
java.lang.IllegalArgumentException - when the key or value cannot be added to this Map
java.lang.NullPointerException - when the key or value is null and this Map does not support null keys or valuesvoid putAll(Map map)
map - the Map to copy mappings from
java.lang.UnsupportedOperationException - when adding to this Map is not supported
java.lang.ClassCastException - when the class of a key or value is inappropriate for this Map
java.lang.IllegalArgumentException - when a key or value cannot be added to this Map
java.lang.NullPointerException - when a key or value is null and this Map does not support null keys or valuesjava.lang.Object remove(java.lang.Object key)
key - the key of the mapping to remove
java.lang.UnsupportedOperationException - when removing from this Map is not supportedint size()
Collection values()
Map values in a Collection. As the returned
Collection is backed by this Map, users should be aware that changes in one will be
immediately visible in the other.
|
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 | ||||||||