Class WeakMap.MapAdapter<K,​V>

  • All Implemented Interfaces:
    WeakMap<K,​V>
    Enclosing interface:
    WeakMap<K,​V>

    public static class WeakMap.MapAdapter<K,​V>
    extends java.lang.Object
    implements WeakMap<K,​V>
    • Constructor Detail

      • MapAdapter

        public MapAdapter​(java.util.Map<K,​V> map)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface WeakMap<K,​V>
      • containsKey

        public boolean containsKey​(K key)
        Specified by:
        containsKey in interface WeakMap<K,​V>
      • get

        public V get​(K key)
        Specified by:
        get in interface WeakMap<K,​V>
      • put

        public void put​(K key,
                        V value)
        Specified by:
        put in interface WeakMap<K,​V>
      • putIfAbsent

        public void putIfAbsent​(K key,
                                V value)
        Specified by:
        putIfAbsent in interface WeakMap<K,​V>
      • remove

        public V remove​(K key)
        Specified by:
        remove in interface WeakMap<K,​V>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object