|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.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()
clone in class java.lang.Objectpublic int getHash()
BasicEMap.EntrygetHash in interface BasicEMap.Entrypublic void setHash(int hash)
BasicEMap.EntrysetHash in interface BasicEMap.Entryorg.eclipse.emf.common.util.BasicEMap.Entryhash - the hash.public java.lang.Object getKey()
getKey in interface java.util.Map.Entrypublic void setKey(java.lang.Object key)
BasicEMap.EntrysetKey in interface BasicEMap.Entryorg.eclipse.emf.common.util.BasicEMap.Entrykey - the key.public java.lang.Object getValue()
getValue in interface java.util.Map.Entrypublic java.lang.Object setValue(java.lang.Object value)
setValue in interface java.util.Map.Entrypublic boolean equals(java.lang.Object object)
equals in interface java.util.Map.Entryequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.EntryhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Copyright 2001-2003 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||