|
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
public abstract class AbstractMap
AbstractMap is an abstract implementation of the Map interface. This implementation does not support adding. A subclass must implement the abstract method entrySet().
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface oracle.adfnmc.java.util.Map |
|---|
Map.Entry |
| Constructor Summary | |
|---|---|
protected |
AbstractMap()
Constructs a new instance of this AbstractMap. |
| Method Summary | |
|---|---|
void |
clear()
Removes all elements from this Map, leaving it empty. |
protected java.lang.Object |
clone()
Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver. |
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. |
abstract Set |
entrySet()
Returns a Set of Map.Entrys that represent the entries in this Map. |
boolean |
equals(java.lang.Object object)
Compares the specified object to this Map and answer if they are equal. |
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. |
java.lang.String |
toString()
Answers the string representation of this Map. |
Collection |
values()
Answers a collection of the values contained in this map. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractMap()
| Method Detail |
|---|
public void clear()
clear in interface Mapjava.lang.UnsupportedOperationException - when removing from this Map is not supportedisEmpty(),
size()public boolean containsKey(java.lang.Object key)
containsKey in interface Mapkey - the object to search for
key is a key of this Map, false otherwisepublic boolean containsValue(java.lang.Object value)
containsValue in interface Mapvalue - the object to search for
value is a value of this Map, false otherwisepublic abstract Set entrySet()
Map.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 MapMap.Entrys representing the entries in this Mappublic boolean equals(java.lang.Object object)
equals in interface Mapequals in class java.lang.Objectobject - the object to compare with this object
hashCode()public java.lang.Object get(java.lang.Object key)
get in interface Mapkey - the key
public int hashCode()
hashCode in interface MaphashCode in class java.lang.Objectequals(java.lang.Object)public boolean isEmpty()
isEmpty in interface Mapsize()public Set keySet()
keySet in interface Map
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface Mapkey - 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 valuespublic void putAll(Map map)
putAll in interface Mapmap - 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 valuespublic java.lang.Object remove(java.lang.Object key)
remove in interface Mapkey - the key of the mapping to remove
java.lang.UnsupportedOperationException - when removing from this Map is not supportedpublic int size()
size in interface Mappublic java.lang.String toString()
toString in class java.lang.Objectpublic Collection values()
values in interface Map
protected java.lang.Object clone()
throws CloneNotSupportedException
CloneNotSupportedException - if the receiver's class does not implement the interface Cloneable.
|
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 | ||||||||