Interface Put<K,​V>

    • Method Detail

      • put

        Object put​(K key,
                   V value)
        Note that the return type is Object, rather than V as in the Map interface. See the class Javadoc for further info.
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key
        the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key, if the implementation supports null values.)
        See Also:
        Map.put(Object, Object)
      • putAll

        void putAll​(Map<? extends K,​? extends V> t)
        t - mappings to be stored in this map
        See Also: