org.eclipse.emf.common.util
Interface BasicEMap.Entry
- All Superinterfaces:
- java.util.Map.Entry
- All Known Implementing Classes:
- BasicEMap.EntryImpl, EStringToStringMapEntryImpl
- Enclosing class:
- BasicEMap
- public static interface BasicEMap.Entry
- extends java.util.Map.Entry
An extended implementation interface for caching hash values
and for upating an entry that may be manufactured as a uninitialized instance by a factory.
No client is expected to use this interface,
other than to implement it in conjunction with a map implementation.
Method Summary |
int |
getHash()
Returns the hash code of the key. |
void |
setHash(int hash)
Sets the hash code of the key. |
void |
setKey(java.lang.Object key)
Sets the key. |
Methods inherited from interface java.util.Map.Entry |
equals, getKey, getValue, hashCode, setValue |
setKey
public void setKey(java.lang.Object key)
- 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.
- Parameters:
key
- the key.
getHash
public int getHash()
- Returns the hash code of the key.
Only the map implementation would really care.
setHash
public void setHash(int hash)
- 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.
- Parameters:
hash
- the hash.