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, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public NoDuplicateKeysMap()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.