|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.util.ECollections.UnmodifiableEList<java.util.Map.Entry<K,V>>
org.eclipse.emf.common.util.ECollections.UnmodifiableEMap<K,V>
private static class ECollections.UnmodifiableEMap<K,V>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.common.util.EMap |
|---|
EMap.InternalMapView<K,V> |
| Field Summary | |
|---|---|
protected EMap<? extends K,? extends V> |
eMap
|
| Fields inherited from class org.eclipse.emf.common.util.ECollections.UnmodifiableEList |
|---|
list |
| Constructor Summary | |
|---|---|
ECollections.UnmodifiableEMap(EMap<? extends K,? extends V> eMap)
|
|
| Method Summary | |
|---|---|
boolean |
containsKey(java.lang.Object key)
Returns whether the key is associated with a value. |
boolean |
containsValue(java.lang.Object value)
Returns whether the value is associated with a key. |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
Returns a set view of the entries. |
V |
get(java.lang.Object key)
Returns the value associated with the key. |
int |
indexOfKey(java.lang.Object key)
Returns the index in the list of the entry with the given key, or -1, if there is no such entry. |
java.util.Set<K> |
keySet()
Returns a set view of the keys of the entries. |
java.util.Map<K,V> |
map()
Returns a map view. |
V |
put(K key,
V value)
Associates the key with the value and returns the value previously associated with the key, or null. |
void |
putAll(EMap<? extends K,? extends V> map)
Puts each Map.Entry of the given map into this one. |
void |
putAll(java.util.Map<? extends K,? extends V> map)
Puts each Map.Entry of the given map into this one. |
V |
removeKey(java.lang.Object key)
Disassociates the key from its value, and returns the value formerly associated with the key. |
java.util.Collection<V> |
values()
Returns a collection view the values of the entries. |
| Methods inherited from class org.eclipse.emf.common.util.ECollections.UnmodifiableEList |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, move, move, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Field Detail |
|---|
protected EMap<? extends K,? extends V> eMap
| Constructor Detail |
|---|
public ECollections.UnmodifiableEMap(EMap<? extends K,? extends V> eMap)
| Method Detail |
|---|
public boolean containsKey(java.lang.Object key)
EMap
containsKey in interface EMap<K,V>key - a key associated with a value.
public boolean containsValue(java.lang.Object value)
EMap
containsValue in interface EMap<K,V>value - a value associated with a key.
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
EMap
entrySet in interface EMap<K,V>public V get(java.lang.Object key)
EMapnull.
get in interface EMap<K,V>key - the key of the value.
public int indexOfKey(java.lang.Object key)
EMap-1, if there is no such entry.
indexOfKey in interface EMap<K,V>key - a key.
public java.util.Set<K> keySet()
EMap
keySet in interface EMap<K,V>public java.util.Map<K,V> map()
EMap
map in interface EMap<K,V>public java.util.Collection<V> values()
EMap
values in interface EMap<K,V>
public V put(K key,
V value)
EMapnull.
The key, the value, or both may be null.
Either the existing entry is updated,
or a new entry is added to the end of the list.
put in interface EMap<K,V>key - the key of the value.value - the value associated with the key.
null.public void putAll(EMap<? extends K,? extends V> map)
EMapMap.Entry of the given map into this one.
putAll in interface EMap<K,V>map - the map of entries.EMap.put(K, V)public void putAll(java.util.Map<? extends K,? extends V> map)
EMapMap.Entry of the given map into this one.
putAll in interface EMap<K,V>map - the map of entries.EMap.put(K, V)public V removeKey(java.lang.Object key)
EMap
removeKey in interface EMap<K,V>key - the key of a value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||