org.apache.commons.collections.keyvalue
public final class DefaultMapEntry extends AbstractMapEntry
Map.Entry
contract from being broken.
Since: Commons Collections 3.0
Version: $Revision: 405927 $ $Date: 2006-05-12 23:57:03 +0100 (Fri, 12 May 2006) $
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