java.util.Map.Entry
, KeyValue
public final class DefaultMapEntry extends AbstractMapEntry
Map.Entry
that prevents
the Map.Entry
contract from being broken.key, value
Constructor | Description |
---|---|
DefaultMapEntry(java.lang.Object key,
java.lang.Object value) |
Constructs a new entry with the specified key and given value.
|
DefaultMapEntry(java.util.Map.Entry entry) |
Constructs a new entry from the specified
Map.Entry . |
DefaultMapEntry(KeyValue pair) |
Constructs a new entry from the specified
KeyValue . |
getKey, getValue, toString
equals, hashCode, setValue
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 © 2001-2017 Apache Software Foundation. All Rights Reserved.