|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.util.BasicEMap.EntryImpl
protected class BasicEMap.EntryImpl
A simple and obvious entry implementation.
Field Summary | |
---|---|
protected int |
hash
The cached hash code of the key. |
protected K |
key
The key. |
protected V |
value
The value. |
Constructor Summary | |
---|---|
BasicEMap.EntryImpl(int hash,
K key,
V 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. |
K |
getKey()
|
V |
getValue()
|
int |
hashCode()
|
void |
setHash(int hash)
Sets the hash code of the key. |
void |
setKey(K key)
Sets the key. |
V |
setValue(V 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 K key
protected V value
Constructor Detail |
---|
public BasicEMap.EntryImpl(int hash, K key, V 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.Object
public int getHash()
BasicEMap.Entry
getHash
in interface BasicEMap.Entry<K,V>
public void setHash(int hash)
BasicEMap.Entry
setHash
in interface BasicEMap.Entry<K,V>
hash
- the hash.public K getKey()
getKey
in interface java.util.Map.Entry<K,V>
public void setKey(K key)
BasicEMap.Entry
setKey
in interface BasicEMap.Entry<K,V>
key
- the key.public V getValue()
getValue
in interface java.util.Map.Entry<K,V>
public V setValue(V value)
setValue
in interface java.util.Map.Entry<K,V>
public boolean equals(java.lang.Object object)
equals
in interface java.util.Map.Entry<K,V>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Map.Entry<K,V>
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |