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, valuesequals, hashCode, toStringpublic Object put(Object key, Object value) throws IllegalArgumentException
put in interface Mapput in class HashMapIllegalArgumentExceptionMap.put(java.lang.Object, java.lang.Object)Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.