Class AbstractMap<K,V>

java.lang.Object
org.infinispan.commons.util.AbstractMap<K,V>
All Implemented Interfaces:
Map<K,V>
Direct Known Subclasses:
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
  • Field Details

    • entrySet

      protected transient Set<Map.Entry<K,V>> entrySet
    • keySet

      protected transient Set<K> keySet
    • values

      protected transient Collection<V> values
  • Constructor Details

    • AbstractMap

      public AbstractMap()
  • Method Details

    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map<K,V>
      Overrides:
      hashCode in class Object
    • hash

      protected static int hash(Object key)
    • eq

      protected static boolean eq(Object o1, Object o2)
    • assertKeyNotNull

      protected static void assertKeyNotNull(Object key)