public final class DefaultMapEntry<K,V> extends AbstractMapEntry<K,V>
Map.Entry that prevents the
MapEntry contract from being broken.key, value| Constructor and Description |
|---|
DefaultMapEntry(KeyValue<K,V> pair)
Constructs a new entry from the specified KeyValue.
|
DefaultMapEntry(K key,
V value)
Constructs a new entry with the specified key and given value.
|
DefaultMapEntry(Map.Entry<K,V> entry)
Constructs a new entry from the specified MapEntry.
|
equals, hashCode, setValuegetKey, getValue, toStringpublic DefaultMapEntry(K key, V value)
key - the key for the entry, may be nullvalue - the value for the entry, may be nullpublic DefaultMapEntry(KeyValue<K,V> pair)
pair - the pair to copy, must not be nullNullPointerException - if the entry is nullpublic DefaultMapEntry(Map.Entry<K,V> entry)
entry - the entry to copy, must not be nullNullPointerException - if the entry is nullCopyright © 2014. All Rights Reserved.