K - Key of the map-entryV - Value of the map-entry@Deprecated public class MapEntry<K,V> extends Object implements Map.Entry<K,V>
Map.Entry implementations. If objects of this
class are used instead of the regular ones obtained by
Map.entrySet(), then we need not worry about the actual field-names
or any changes to them in the future.ConcurrentHashMap.MapEntry does not name the fields as key/
value in Java 1.8 while it used to do so in Java 1.7| Modifier and Type | Method and Description |
|---|---|
K |
getKey()
Deprecated.
|
V |
getValue()
Deprecated.
|
V |
setValue(V value)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodeCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.