public class NoDuplicateKeysMap extends HashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
NoDuplicateKeysMap() |
Modifier and Type | Method and Description |
---|---|
Object |
put(Object key,
Object value)
Overrides java.util.Map.put(java.lang.Object, java.lang.Object) to
prevent duplicate keys.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
equals, hashCode, toString
public NoDuplicateKeysMap()
public Object put(Object key, Object value) throws IllegalArgumentException
put
in interface Map
put
in class HashMap
IllegalArgumentException
Map.put(java.lang.Object, java.lang.Object)
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.