| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A list of java.util.Map.Entry instances, i.e., entries, that supports a map() view as well as the full Map API, with the noteable exception of Map.remove(Object). It's return type conflicts with that of Collection.remove(Object). The removeKey(Object) method may be used instead. The implementation of remove may delegate to removeKey for an object that is not an instance of Map.Entry.
Nested Class Summary | |
static interface | EMap.InternalMapView
An internal interface implemented by the map view. |
Method Summary | |
boolean | containsKey(Object key)
Returns whether the key is associated with a value. |
boolean | containsValue(Object value)
Returns whether the value is associated with a key. |
Set | entrySet()
Returns a set view of the entries. |
Object | get(Object key)
Returns the value associated with the key. |
int | indexOfKey(Object key)
Returns the index in the list of the entry with the given key, or -1, if there is no such entry. |
Set | keySet()
Returns a set view of the keys of the entries. |
Map | map()
Returns a map view. |
Object | put(Object key,
Object value)
Associates the key with the value and returns the value previously associated with the key, or null. |
void | putAll(EMap map)
Puts each Map.Entry of the given map into this one. |
void | putAll(Map map)
Puts each Map.Entry of the given map into this one. |
Object | removeKey(Object key)
Disassociates the key from its value, and returns the value formerly associated with the key. |
Collection | values()
Returns a collection view the values of the entries. |
Methods inherited from interface org.eclipse.emf.common.util.EList |
move, move |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Method Detail |
public Object get(Object key)
public Object put(Object key, Object value)
public void putAll(Map map)
public void putAll(EMap map)
public int indexOfKey(Object key)
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public Object removeKey(Object key)
public Map map()
public Set entrySet()
public Set keySet()
public Collection values()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |