org.eclipse.emf.common.util
Interface BasicEMap.Entry

All Superinterfaces:
Map.Entry
All Known Implementing Classes:
BasicEMap.EntryImpl, DynamicEObjectImpl.BasicEMapEntry, ENamedElementToXMLInfoMapEntryImpl, EObjectToChangesMapEntryImpl, EStringToStringMapEntryImpl
Enclosing interface:
BasicEMap

public static interface BasicEMap.Entry
extends 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(Object key)
          Sets the key.
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, getValue, hashCode, setValue
 

Method Detail

setKey

public void setKey(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.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.