org.eclipse.emf.ecore.util
Class EcoreEMap
java.lang.Object
|
+--org.eclipse.emf.common.util.BasicEMap
|
+--org.eclipse.emf.ecore.util.EcoreEMap
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, EList, EMap, InternalEList, java.util.List, java.io.Serializable
- public class EcoreEMap
- extends BasicEMap
- implements InternalEList
- See Also:
- Serialized Form
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, 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 |
entryEClass
protected EClass entryEClass
entryClass
protected java.lang.Class entryClass
EcoreEMap
public EcoreEMap(EClass entryEClass,
java.lang.Class entryClass,
InternalEObject owner,
int featureID)
initializeDelegateEList
protected void initializeDelegateEList()
- Description copied from class:
BasicEMap
- Initializes the
BasicEMap.delegateEList
.
This implementation illustrates the precise pattern that is used to
delegate a list implementation's callback methods to the map implementation.
- Overrides:
initializeDelegateEList
in class BasicEMap
newList
protected BasicEList newList()
- Description copied from class:
BasicEMap
- Returns a new allocated list of entries.
Clients may override this to create typed storage.
The cost of type checking via a typed array is negligable.
The type must be kept in synch with
newEntry
.
- Overrides:
newList
in class BasicEMap
- Following copied from class:
org.eclipse.emf.common.util.BasicEMap
- Returns:
- a new list of entries.
- See Also:
BasicEMap.newEntry(int, Object, Object)
newEntry
protected BasicEMap.Entry newEntry(int hash,
java.lang.Object key,
java.lang.Object value)
- Description copied from class:
BasicEMap
- Returns a new entry.
The key is
validated
and the value is validated
.
Clients may override this to create typed storage.
The type must be kept in synch with newEntry
.
- Overrides:
newEntry
in class BasicEMap
- Following copied from class:
org.eclipse.emf.common.util.BasicEMap
- Parameters:
hash
- the cached hash code of the key.key
- the key.value
- the value.- Returns:
- a new entry.
- See Also:
BasicEMap.newList()
basicList
public java.util.List basicList()
- Description copied from interface:
InternalEList
- Returns an unmodifiable list that yields unresolved values.
- Specified by:
basicList
in interface InternalEList
basicIterator
public java.util.Iterator basicIterator()
- Returns an iterator that yields unresolved values.
- Specified by:
basicIterator
in interface InternalEList
basicListIterator
public java.util.ListIterator basicListIterator()
- Returns a list iterator that yields unresolved values.
- Specified by:
basicListIterator
in interface InternalEList
basicListIterator
public java.util.ListIterator basicListIterator(int index)
- Returns a list iterator that yields unresolved values.
- Specified by:
basicListIterator
in interface InternalEList
basicRemove
public NotificationChain basicRemove(java.lang.Object object,
NotificationChain notifications)
- Remove the object with without updating the inverse.
- Specified by:
basicRemove
in interface InternalEList
basicAdd
public NotificationChain basicAdd(java.lang.Object object,
NotificationChain notifications)
- Add the object without updating the inverse.
- Specified by:
basicAdd
in interface InternalEList
addUnique
public void addUnique(java.lang.Object object)
- Add the object without verifying uniqueness.
- Specified by:
addUnique
in interface InternalEList
addUnique
public void addUnique(int index,
java.lang.Object object)
- Add the object without verifying uniqueness.
- Specified by:
addUnique
in interface InternalEList