public final class DefaultMapEntry extends AbstractMapEntry
Map.Entry
that prevents
the Map.Entry
contract from being broken.key, value
Constructor and Description |
---|
DefaultMapEntry(KeyValue pair)
Constructs a new entry from the specified
KeyValue . |
DefaultMapEntry(Map.Entry entry)
Constructs a new entry from the specified
Map.Entry . |
DefaultMapEntry(Object key,
Object value)
Constructs a new entry with the specified key and given value.
|
equals, hashCode, setValue
getKey, getValue, toString
public DefaultMapEntry(Object key, Object value)
key
- the key for the entry, may be nullvalue
- the value for the entry, may be nullpublic DefaultMapEntry(KeyValue pair)
KeyValue
.pair
- the pair to copy, must not be nullNullPointerException
- if the entry is nullpublic DefaultMapEntry(Map.Entry entry)
Map.Entry
.entry
- the entry to copy, must not be nullNullPointerException
- if the entry is nullCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.