Package org.eclipse.emf.common.util
Interface BasicEMap.Entry<K,V>
- All Superinterfaces:
Map.Entry<K,V>
- All Known Implementing Classes:
BasicEMap.EntryImpl
An extended implementation interface for caching hash values
and for updating 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
-
Method Details
-
setKey
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
int getHash()Returns the hash code of the key. Only the map implementation would really care. -
setHash
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.
-