|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.util.BasicEMap<K,V> org.eclipse.emf.ecore.util.EcoreEMap<K,V>
public class EcoreEMap<K,V>
Nested Class Summary | |
---|---|
protected class |
EcoreEMap.DelegateEObjectContainmentEList<E extends java.lang.Object & BasicEMap.Entry<K,V>>
|
static class |
EcoreEMap.Unsettable<K,V>
|
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEMap |
---|
BasicEMap.BasicEMapIterator<U>, BasicEMap.BasicEMapKeyIterator, BasicEMap.BasicEMapValueIterator, BasicEMap.DelegatingMap, BasicEMap.Entry<K,V>, BasicEMap.EntryImpl, BasicEMap.View<K,V> |
Nested classes/interfaces inherited from interface org.eclipse.emf.common.util.EMap |
---|
EMap.InternalMapView<K,V> |
Field Summary | |
---|---|
protected java.lang.Class<?> |
entryClass
|
protected EClass |
entryEClass
|
Fields inherited from class org.eclipse.emf.common.util.BasicEMap |
---|
delegateEList, entryData, modCount, size, view |
Constructor Summary | |
---|---|
EcoreEMap(EClass entryEClass,
java.lang.Class<?> entryClass,
EList<BasicEMap.Entry<K,V>> delegateEList)
|
|
EcoreEMap(EClass entryEClass,
java.lang.Class<?> entryClass,
InternalEObject owner,
int featureID)
|
Method Summary | ||
---|---|---|
boolean |
addAllUnique(java.util.Collection<? extends java.util.Map.Entry<K,V>> collection)
Add the objects without verifying uniqueness. |
|
boolean |
addAllUnique(int index,
java.util.Collection<? extends java.util.Map.Entry<K,V>> collection)
Add the objects without verifying uniqueness. |
|
void |
addUnique(int index,
java.util.Map.Entry<K,V> object)
Add the object without verifying uniqueness. |
|
void |
addUnique(java.util.Map.Entry<K,V> object)
Add the object without verifying uniqueness. |
|
NotificationChain |
basicAdd(java.util.Map.Entry<K,V> object,
NotificationChain notifications)
Add the object without updating the inverse. |
|
boolean |
basicContains(java.lang.Object object)
Returns whether the object is contained within the list of unresolved values. |
|
boolean |
basicContainsAll(java.util.Collection<?> collection)
Returns whether each object in the collection is contained within the list of unresolved values. |
|
BasicEMap.Entry<K,V> |
basicGet(int index)
Returns the unresolved value. |
|
int |
basicIndexOf(java.lang.Object object)
Returns the index of the object within the list of unresolved values. |
|
java.util.Iterator<java.util.Map.Entry<K,V>> |
basicIterator()
Returns an iterator that yields unresolved values. |
|
int |
basicLastIndexOf(java.lang.Object object)
Returns the last index of the object within the list of unresolved values. |
|
java.util.List<java.util.Map.Entry<K,V>> |
basicList()
Returns an unmodifiable list that yields unresolved values. |
|
java.util.ListIterator<java.util.Map.Entry<K,V>> |
basicListIterator()
Returns a list iterator that yields unresolved values. |
|
java.util.ListIterator<java.util.Map.Entry<K,V>> |
basicListIterator(int index)
Returns a list iterator that yields unresolved values. |
|
NotificationChain |
basicRemove(java.lang.Object object,
NotificationChain notifications)
Remove the object with without updating the inverse. |
|
java.lang.Object[] |
basicToArray()
Returns the array with unresolved values. |
|
|
basicToArray(T[] array)
Returns the array with unresolved values. |
|
java.lang.Object |
get(boolean resolve)
Returns the value held by the feature of the object; it optionally resolves the value. |
|
EObject |
getEObject()
Returns the object holding a value. |
|
EStructuralFeature |
getEStructuralFeature()
Returns the specific feature holding a value for the object. |
|
protected void |
initializeDelegateEList()
Initializes the BasicEMap.delegateEList . |
|
boolean |
isSet()
Returns whether a value is held by the feature of the object. |
|
protected BasicEMap.Entry<K,V> |
newEntry(int hash,
K key,
V value)
Returns a new entry. |
|
protected BasicEList<BasicEMap.Entry<K,V>> |
newList()
Returns a new allocated list of entries. |
|
void |
set(java.lang.Object value)
Set the value held by the feature of the object. |
|
java.util.Map.Entry<K,V> |
setUnique(int index,
java.util.Map.Entry<K,V> object)
Set the object without verifying uniqueness. |
|
void |
unset()
Unsets the value held by the feature of the object. |
Methods inherited from class org.eclipse.emf.common.util.BasicEMap |
---|
add, add, addAll, addAll, clear, clone, contains, containsAll, containsKey, containsValue, didAdd, didClear, didModify, didRemove, doClear, doMove, doPut, doRemove, ensureEntryDataExists, entryForKey, entryIndexForKey, entrySet, equals, get, get, grow, hashCode, hashOf, indexOf, indexOf, indexOfKey, isEmpty, iterator, keySet, lastIndexOf, listIterator, listIterator, map, move, move, newEntryData, put, putAll, putAll, putEntry, remove, remove, removeAll, removeEntry, removeKey, resolve, retainAll, set, size, subList, toArray, toArray, toString, useEqualsForKey, useEqualsForValue, validateKey, validateValue, values |
Methods inherited from class java.lang.Object |
---|
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 EClass entryEClass
protected java.lang.Class<?> entryClass
Constructor Detail |
---|
public EcoreEMap(EClass entryEClass, java.lang.Class<?> entryClass, InternalEObject owner, int featureID)
public EcoreEMap(EClass entryEClass, java.lang.Class<?> entryClass, EList<BasicEMap.Entry<K,V>> delegateEList)
Method Detail |
---|
protected void initializeDelegateEList()
BasicEMap
BasicEMap.delegateEList
.
This implementation illustrates the precise pattern that is used to
delegate a list implementation's callback methods to the map implementation.
initializeDelegateEList
in class BasicEMap<K,V>
protected BasicEList<BasicEMap.Entry<K,V>> newList()
BasicEMap
newEntry
.
newList
in class BasicEMap<K,V>
BasicEMap.newEntry(int, Object, Object)
protected BasicEMap.Entry<K,V> newEntry(int hash, K key, V value)
BasicEMap
validated
and the value is validated
.
Clients may override this to create typed storage.
The type must be kept in synch with newEntry
.
newEntry
in class BasicEMap<K,V>
hash
- the cached hash code of the key.key
- the key.value
- the value.
BasicEMap.newList()
public BasicEMap.Entry<K,V> basicGet(int index)
InternalEList
basicGet
in interface InternalEList<java.util.Map.Entry<K,V>>
public java.util.List<java.util.Map.Entry<K,V>> basicList()
InternalEList
basicList
in interface InternalEList<java.util.Map.Entry<K,V>>
public java.util.Iterator<java.util.Map.Entry<K,V>> basicIterator()
basicIterator
in interface InternalEList<java.util.Map.Entry<K,V>>
public java.util.ListIterator<java.util.Map.Entry<K,V>> basicListIterator()
basicListIterator
in interface InternalEList<java.util.Map.Entry<K,V>>
public java.util.ListIterator<java.util.Map.Entry<K,V>> basicListIterator(int index)
basicListIterator
in interface InternalEList<java.util.Map.Entry<K,V>>
public boolean basicContains(java.lang.Object object)
InternalEList
basicContains
in interface InternalEList<java.util.Map.Entry<K,V>>
public boolean basicContainsAll(java.util.Collection<?> collection)
InternalEList
basicContainsAll
in interface InternalEList<java.util.Map.Entry<K,V>>
public int basicIndexOf(java.lang.Object object)
InternalEList
basicIndexOf
in interface InternalEList<java.util.Map.Entry<K,V>>
public int basicLastIndexOf(java.lang.Object object)
InternalEList
basicLastIndexOf
in interface InternalEList<java.util.Map.Entry<K,V>>
public java.lang.Object[] basicToArray()
basicToArray
in interface InternalEList<java.util.Map.Entry<K,V>>
public <T> T[] basicToArray(T[] array)
basicToArray
in interface InternalEList<java.util.Map.Entry<K,V>>
public NotificationChain basicRemove(java.lang.Object object, NotificationChain notifications)
basicRemove
in interface InternalEList<java.util.Map.Entry<K,V>>
public NotificationChain basicAdd(java.util.Map.Entry<K,V> object, NotificationChain notifications)
basicAdd
in interface InternalEList<java.util.Map.Entry<K,V>>
public void addUnique(java.util.Map.Entry<K,V> object)
addUnique
in interface InternalEList<java.util.Map.Entry<K,V>>
public void addUnique(int index, java.util.Map.Entry<K,V> object)
addUnique
in interface InternalEList<java.util.Map.Entry<K,V>>
public boolean addAllUnique(java.util.Collection<? extends java.util.Map.Entry<K,V>> collection)
addAllUnique
in interface InternalEList<java.util.Map.Entry<K,V>>
public boolean addAllUnique(int index, java.util.Collection<? extends java.util.Map.Entry<K,V>> collection)
addAllUnique
in interface InternalEList<java.util.Map.Entry<K,V>>
public java.util.Map.Entry<K,V> setUnique(int index, java.util.Map.Entry<K,V> object)
setUnique
in interface InternalEList<java.util.Map.Entry<K,V>>
public EObject getEObject()
EStructuralFeature.Setting
getEObject
in interface EStructuralFeature.Setting
public EStructuralFeature getEStructuralFeature()
EStructuralFeature.Setting
getEStructuralFeature
in interface EStructuralFeature.Setting
public java.lang.Object get(boolean resolve)
EStructuralFeature.Setting
resolves
the value.
get
in interface EStructuralFeature.Setting
resolve
- whether to resolve.
EObject.eGet(EStructuralFeature, boolean)
public void set(java.lang.Object value)
EStructuralFeature.Setting
set
in interface EStructuralFeature.Setting
value
- the newValue.EObject.eSet(EStructuralFeature, Object)
public boolean isSet()
EStructuralFeature.Setting
isSet
in interface EStructuralFeature.Setting
isSet
in interface InternalEList.Unsettable<java.util.Map.Entry<K,V>>
EObject.eIsSet(EStructuralFeature)
public void unset()
EStructuralFeature.Setting
unset
in interface EStructuralFeature.Setting
unset
in interface InternalEList.Unsettable<java.util.Map.Entry<K,V>>
EObject.eUnset(EStructuralFeature)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |