Class ReferenceMap<K,​V>

    • Constructor Detail

      • ReferenceMap

        public ReferenceMap()
    • Method Detail

      • put

        public V put​(K key,
                     V value)
        Specified by:
        put in interface Map<K,​V>
        Overrides:
        put in class HashMap<K,​V>
      • putAll

        public void putAll​(Map<? extends K,​? extends V> collection)
        Specified by:
        putAll in interface Map<K,​V>
        Overrides:
        putAll in class HashMap<K,​V>
      • beforeAdd

        protected abstract void beforeAdd​(K key,
                                          V value)
      • clear

        public void clear()
        Specified by:
        clear in interface Map<K,​V>
        Overrides:
        clear in class HashMap<K,​V>
      • afterRemove

        protected abstract void afterRemove​(K key,
                                            V value)