public class NoDuplicateKeysMap extends HashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| 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, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringprivate static final long serialVersionUID
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.