K - the type of keysV - the type of mapped valuespublic abstract class AbstractMapEntryDecorator<K,V> extends Object implements Map.Entry<K,V>, KeyValue<K,V>
Map.Entry.| Constructor and Description |
|---|
AbstractMapEntryDecorator(Map.Entry<K,V> entry)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
K |
getKey()
Gets the key from the pair.
|
protected Map.Entry<K,V> |
getMapEntry()
Gets the map being decorated.
|
V |
getValue()
Gets the value from the pair.
|
int |
hashCode() |
V |
setValue(V object) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic AbstractMapEntryDecorator(Map.Entry<K,V> entry)
entry - the Map.Entry to decorate, must not be nullNullPointerException - if the collection is nullprotected Map.Entry<K,V> getMapEntry()
public V getValue()
KeyValuepublic boolean equals(Object object)
public int hashCode()
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.