|
|||||||||||
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 java.lang.Object |
key
The key. |
protected java.lang.Object |
value
The value. |
Constructor Summary | |
BasicEMap.EntryImpl(int hash,
java.lang.Object key,
java.lang.Object value)
Creates a fully initialized instance. |
Method Summary | |
protected java.lang.Object |
clone()
Returns a new entry just like this one. |
boolean |
equals(java.lang.Object object)
|
int |
getHash()
Returns the hash code of the key. |
java.lang.Object |
getKey()
|
java.lang.Object |
getValue()
|
int |
hashCode()
|
void |
setHash(int hash)
Sets the hash code of the key. |
void |
setKey(java.lang.Object key)
Sets the key. |
java.lang.Object |
setValue(java.lang.Object value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int hash
protected java.lang.Object key
protected java.lang.Object value
Constructor Detail |
public BasicEMap.EntryImpl(int hash, java.lang.Object key, java.lang.Object value)
hash
- the hash code of the key.key
- the key.value
- the value.Method Detail |
protected java.lang.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 java.lang.Object getKey()
getKey
in interface java.util.Map.Entry
public void setKey(java.lang.Object key)
BasicEMap.Entry
setKey
in interface BasicEMap.Entry
key
- the key.public java.lang.Object getValue()
getValue
in interface java.util.Map.Entry
public java.lang.Object setValue(java.lang.Object value)
setValue
in interface java.util.Map.Entry
public boolean equals(java.lang.Object object)
equals
in interface java.util.Map.Entry
public int hashCode()
hashCode
in interface java.util.Map.Entry
public java.lang.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 |