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 |
|---|
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.Objectpublic int getHash()
BasicEMap.EntrygetHash in interface BasicEMap.Entry<K,V>public void setHash(int hash)
BasicEMap.EntrysetHash in interface BasicEMap.Entry<K,V>hash - the hash.public void setKey(K key)
BasicEMap.EntrysetKey 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.ObjectCopyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature