public final class DefaultMapEntry extends AbstractMapEntry
Map.Entry
that prevents
the Map.Entry
contract from being broken.Constructor and Description |
---|
DefaultMapEntry(KeyValue pair)
Constructs a new entry from the specified
KeyValue . |
DefaultMapEntry(java.util.Map.Entry entry)
Constructs a new entry from the specified
Map.Entry . |
DefaultMapEntry(java.lang.Object key,
java.lang.Object value)
Constructs a new entry with the specified key and given value.
|
equals, hashCode, setValue
getKey, getValue, toString
public DefaultMapEntry(java.lang.Object key, java.lang.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 nulljava.lang.NullPointerException
- if the entry is nullpublic DefaultMapEntry(java.util.Map.Entry entry)
Map.Entry
.entry
- the entry to copy, must not be nulljava.lang.NullPointerException
- if the entry is nullCopyright © 2010 - 2020 Adobe. All Rights Reserved