|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.util.BasicEMap.EntryImpl
A simple and obvious entry implementation.
Field Summary | |
protected int |
hash
The cached hash code of the key. |
protected Object |
key
The key. |
protected Object |
value
The value. |
Constructor Summary | |
BasicEMap.EntryImpl(int hash,
Object key,
Object value)
Creates a fully initialized instance. |
Method Summary | |
protected Object |
clone()
Returns a new entry just like this one. |
boolean |
equals(Object object)
|
int |
getHash()
Returns the hash code of the key. |
Object |
getKey()
|
Object |
getValue()
|
int |
hashCode()
|
void |
setHash(int hash)
Sets the hash code of the key. |
void |
setKey(Object key)
Sets the key. |
Object |
setValue(Object value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int hash
protected Object key
protected Object value
Constructor Detail |
public BasicEMap.EntryImpl(int hash, Object key, Object value)
hash
- the hash code of the key.key
- the key.value
- the value.Method Detail |
protected Object clone()
public int getHash()
BasicEMap.Entry
getHash
in interface BasicEMap.Entry
public void setHash(int hash)
BasicEMap.Entry
setHash
in interface BasicEMap.Entry
hash
- the hash.public Object getKey()
getKey
in interface Map.Entry
public void setKey(Object key)
BasicEMap.Entry
setKey
in interface BasicEMap.Entry
key
- the key.public Object getValue()
getValue
in interface Map.Entry
public Object setValue(Object value)
setValue
in interface Map.Entry
public boolean equals(Object object)
equals
in interface Map.Entry
public int hashCode()
hashCode
in interface Map.Entry
public String toString()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |