Package org.infinispan.commons.util
Class AbstractMap<K,V>
- java.lang.Object
-
- org.infinispan.commons.util.AbstractMap<K,V>
-
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
EquivalentHashMap,FastCopyHashMap
public abstract class AbstractMap<K,V> extends Object implements Map<K,V>
Similar to the JDK's AbstractMap, this provides common functionality for custom map implementations. Unlike JDK's AbstractMap, there is no support for null keys.- Since:
- 4.0
- Author:
- Manik Surtani
-
-
Constructor Summary
Constructors Constructor Description AbstractMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidassertKeyNotNull(Object key)protected static booleaneq(Object o1, Object o2)protected static inthash(Object key)inthashCode()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-