K - V - public class Entry<K,V> extends Object implements Map.Entry<K,V>, Serializable
MapEntrySet. as the hashmap implementation doesn't make Map.Entry serializable, we have to write our
own entry class.| Constructor and Description |
|---|
Entry()
constructor no map connection available.
|
Entry(K key,
V value)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
V |
getValue() |
void |
setKey(K key) |
V |
setValue(V value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodepublic Entry()
MapEntrySet has to collect this entry on adding.public void setKey(K key)
Copyright © 2012–2018. All rights reserved.