Class 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 Detail

      • keySet

        protected transient Set<K> keySet
    • Constructor Detail

      • AbstractMap

        public AbstractMap()
    • Method Detail

      • hashCode

        public int hashCode()
      • hash

        protected static int hash​(Object key)
      • eq

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

        protected static void assertKeyNotNull​(Object key)