protected class BasicEMap.EntryImpl extends java.lang.Object implements BasicEMap.Entry<K,V>
Modifier and Type | Field and Description |
---|---|
protected int |
hash
The cached hash code of the key.
|
protected K |
key
The key.
|
protected V |
value
The value.
|
Constructor and Description |
---|
BasicEMap.EntryImpl(int hash,
K key,
V value)
Creates a fully initialized instance.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected int hash
protected K key
protected V value
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 void setKey(K key)
BasicEMap.Entry
setKey
in interface BasicEMap.Entry<K,V>
key
- the key.public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
toString
in class java.lang.Object