Interface MutMap<K,​V>

    • Method Detail

      • assoc

        @NotNull
        @NotNull MutMap<K,​V> assoc​(K key,
                                         V val)
        Returns a new map with the given key/value added
        Specified by:
        assoc in interface BaseMap<K,​V>
      • assoc

        @NotNull
        default @NotNull MutMap<K,​V> assoc​(@NotNull
                                                 Map.Entry<K,​V> entry)
        Returns a new map with an immutable copy of the given entry added
        Specified by:
        assoc in interface BaseMap<K,​V>
      • entrySet

        @NotNull
        default @NotNull MutSet<Map.Entry<K,​V>> entrySet()
        Description copied from interface: BaseMap
        Returns a view of the mappings contained in this map. The set should actually contain UnmodMap.Entry items, but that return signature is illegal in Java, so you'll just have to remember.
        Specified by:
        entrySet in interface BaseMap<K,​V>
        Specified by:
        entrySet in interface Map<K,​V>
        Specified by:
        entrySet in interface UnmodMap<K,​V>
      • keySet

        @NotNull
        default @NotNull MutSet<K> keySet()
        Returns a mutable view of the keys contained in this map.
        Specified by:
        keySet in interface BaseMap<K,​V>
        Specified by:
        keySet in interface Map<K,​V>
        Specified by:
        keySet in interface UnmodMap<K,​V>
      • immutable

        ImMap<K,​V> immutable()
        Returns an immutable version of this mutable map.
      • without

        @NotNull
        @NotNull MutMap<K,​V> without​(K key)
        Returns a new map with the given key/value removed
        Specified by:
        without in interface BaseMap<K,​V>