org.apache.commons.collections.keyvalue
public final class DefaultMapEntry extends AbstractMapEntry
Map.Entry
contract from being broken.
Since: Commons Collections 3.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
Constructor Summary | |
---|---|
DefaultMapEntry(Object key, Object value)
Constructs a new entry with the specified key and given value.
| |
DefaultMapEntry(KeyValue pair)
Constructs a new entry from the specified KeyValue .
| |
DefaultMapEntry(Entry entry)
Constructs a new entry from the specified Map.Entry .
|
Parameters: key the key for the entry, may be null value the value for the entry, may be null
KeyValue
.
Parameters: pair the pair to copy, must not be null
Throws: NullPointerException if the entry is null
Map.Entry
.
Parameters: entry the entry to copy, must not be null
Throws: NullPointerException if the entry is null