Package org.apache.directory.api.util
Class NoDuplicateKeysMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.apache.directory.api.util.NoDuplicateKeysMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
public class NoDuplicateKeysMap extends HashMap
A Map implementation derived from HashMap that only overrides a single method put() in order to prevent duplicate keyed entries to be added.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description NoDuplicateKeysMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
put(Object key, Object value)
Overrides java.util.Map.put(java.lang.Object, java.lang.Object) to prevent duplicate keys.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
NoDuplicateKeysMap
public NoDuplicateKeysMap()
-
-