org.eclipse.emf.ecore.impl
Class DynamicEObjectImpl.BasicEMapEntry<K,V>
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.ecore.impl.DynamicEObjectImpl
org.eclipse.emf.ecore.impl.DynamicEObjectImpl.BasicEMapEntry<K,V>
- All Implemented Interfaces:
- java.util.Map.Entry<K,V>, Notifier, BasicEMap.Entry<K,V>, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject
- Enclosing class:
- DynamicEObjectImpl
public static final class DynamicEObjectImpl.BasicEMapEntry<K,V>
- extends DynamicEObjectImpl
- implements BasicEMap.Entry<K,V>
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetDeliver, eSetProxyURI, eStaticClass |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStore, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
equals, hashCode |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eNotify |
hash
protected int hash
keyFeature
protected EStructuralFeature keyFeature
valueFeature
protected EStructuralFeature valueFeature
DynamicEObjectImpl.BasicEMapEntry
public DynamicEObjectImpl.BasicEMapEntry()
- Creates a dynamic EObject.
DynamicEObjectImpl.BasicEMapEntry
public DynamicEObjectImpl.BasicEMapEntry(EClass eClass)
- Creates a dynamic EObject.
getKey
public K getKey()
- Specified by:
getKey
in interface java.util.Map.Entry<K,V>
setKey
public void setKey(java.lang.Object key)
- Description copied from interface:
BasicEMap.Entry
- Sets the key.
This should only be called by the map implementation,
since the key of an entry already in the map must be immutable.
- Specified by:
setKey
in interface BasicEMap.Entry<K,V>
- Parameters:
key
- the key.
getHash
public int getHash()
- Description copied from interface:
BasicEMap.Entry
- Returns the hash code of the key.
Only the map implementation would really care.
- Specified by:
getHash
in interface BasicEMap.Entry<K,V>
setHash
public void setHash(int hash)
- Description copied from interface:
BasicEMap.Entry
- Sets the hash code of the key.
This should only be called by the map implementation,
since the hash code of the key of an entry already in the map must be immutable.
- Specified by:
setHash
in interface BasicEMap.Entry<K,V>
- Parameters:
hash
- the hash.
getValue
public V getValue()
- Specified by:
getValue
in interface java.util.Map.Entry<K,V>
setValue
public V setValue(V value)
- Specified by:
setValue
in interface java.util.Map.Entry<K,V>
eSetClass
public void eSetClass(EClass eClass)
- Description copied from interface:
InternalEObject
- Sets the meta class.
An object with a set meta class is, by definition, a dynamic instance;
it will support dynamic
settings
.
an.
- Specified by:
eSetClass
in interface InternalEObject
- Overrides:
eSetClass
in class DynamicEObjectImpl
- Parameters:
eClass
- the dynamic meta class.- See Also:
InternalEObject.eSetting(EStructuralFeature)